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'); }
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]'); }
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.'); }