Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = $this->url($this->urlizeOptions($this->index));
- $this->request->setMethod('post')
- ->setPost(array('keten' => 'Test'));
- $this->dispatch($url);
- $this->assertModule($this->index['module']);
- $this->assertController($this->index['controller']);
- $this->assertAction($this->index['action']);
- $observer = $this->getMockClass('UCPG_Service_Company', array('createKeten'));
- $observer::staticExpects($this->once())
- ->method('createKeten')
- ->with(array('keten' => 'Test'));
Add Comment
Please, Sign In to add comment