Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AuthControllerTest extends Zend_Test_PHPUnit_ControllerTestCase {
- ...
- public function testUserFailingLogin() {
- $this->request->setPost(array(
- 'email' => 'wrong@email.com',
- 'password' => 'wrongpassword',
- ));
- $this->request->setMethod('POST');
- $this->dispatch('/login');
- $this->assertQuery('.alert');
- }
- }
Add Comment
Please, Sign In to add comment