Exemple #1
0
 public function checkValidLogin(FunctionalTester $I)
 {
     $I->submitForm('#login-form', $this->formParams('erau', 'password_0'));
     $I->see('Logout (erau)', 'form button[type=submit]');
     $I->dontSeeLink('Login');
     $I->dontSeeLink('Signup');
 }
 public function checkValidLogin(FunctionalTester $I)
 {
     $I->submitForm('#login-form', $this->formParams('okirlin', 'password_0'));
     $I->see('okirlin');
     $I->seeLink('Logout', '/site/logout');
     $I->dontSeeLink('Login');
     $I->dontSeeLink('Signup');
 }
Exemple #3
0
 public function signupSuccessfully(FunctionalTester $I)
 {
     $I->submitForm($this->formId, ['SignupForm[username]' => 'tester', 'SignupForm[email]' => '*****@*****.**', 'SignupForm[password]' => 'tester_password']);
     $I->seeRecord('common\\models\\User', ['username' => 'tester', 'email' => '*****@*****.**']);
     $I->see('Logout (tester)', 'form button[type=submit]');
 }
Exemple #4
0
 public function checkContactSubmitCorrectData(FunctionalTester $I)
 {
     $I->submitForm('#contact-form', ['ContactForm[name]' => 'tester', 'ContactForm[email]' => '*****@*****.**', 'ContactForm[subject]' => 'test subject', 'ContactForm[body]' => 'test content', 'ContactForm[verifyCode]' => 'testme']);
     $I->seeEmailIsSent();
     $I->see('Thank you for contacting us. We will respond to you as soon as possible.');
 }