Guest User

Untitled

a guest
Jan 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $url = $this->url($this->urlizeOptions($this->index));
  2. $this->request->setMethod('post')
  3. ->setPost(array('keten' => 'Test'));
  4. $this->dispatch($url);
  5. $this->assertModule($this->index['module']);
  6. $this->assertController($this->index['controller']);
  7. $this->assertAction($this->index['action']);
  8. $observer = $this->getMockClass('UCPG_Service_Company', array('createKeten'));
  9. $observer::staticExpects($this->once())
  10. ->method('createKeten')
  11. ->with(array('keten' => 'Test'));
Add Comment
Please, Sign In to add comment