SHARE
TWEET

Untitled

a guest Jan 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class AuthControllerTest extends Zend_Test_PHPUnit_ControllerTestCase {
  2.     ...
  3.     public function testUserFailingLogin() {
  4.  
  5.         $this->request->setPost(array(
  6.             'email'  => 'wrong@email.com',
  7.             'password' => 'wrongpassword',
  8.         ));
  9.  
  10.         $this->request->setMethod('POST');
  11.         $this->dispatch('/login');
  12.  
  13.         $this->assertQuery('.alert');
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top