public function checkLoginAfterSignin(AcceptanceTester $I) { TestCommons::SignMeIn($I); $I->seeInDatabase('users', ['username' => 'test1']); $I->amOnPage('/'); $I->seeInCurrentUrl('/home.php'); }
/** * @param FunctionalTester $I */ public function loginWithCorrectData(FunctionalTester $I) { $I->wantToTest('if I can login with correct data'); TestCommons::authentificate($I, 'owner'); $I->see('( aaaaa )'); $I->see('Edit profile'); $I->see('Administration'); $I->dontSee('The entered data is not correct!'); }
/** * @param FunctionalTester $I */ public function seeMemberList(FunctionalTester $I) { $I->wantToTest('if I can see the memberlist'); TestCommons::authentificate($I, 'owner'); $I->click(['link' => 'Memberlist']); $I->see('Memberlist'); }
/** * @param FunctionalTester $I */ public function _before(FunctionalTester $I) { TestCommons::logout($I); }
public function checkLoggedInRefactored(AcceptanceTester $I) { TestCommons::logMeIn($I); $I->amOnPage('/'); $I->seeInCurrentUrl('/home.php'); }
/** * @param AcceptanceTester $I */ public function _before(AcceptanceTester $I) { TestCommons::authentificate($I, 'owner'); }