Пример #1
0
 public function checkLoginAfterSignin(AcceptanceTester $I)
 {
     TestCommons::SignMeIn($I);
     $I->seeInDatabase('users', ['username' => 'test1']);
     $I->amOnPage('/');
     $I->seeInCurrentUrl('/home.php');
 }
Пример #2
0
 /**
  * @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!');
 }
Пример #3
0
 /**
  * @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);
 }
Пример #5
0
 public function checkLoggedInRefactored(AcceptanceTester $I)
 {
     TestCommons::logMeIn($I);
     $I->amOnPage('/');
     $I->seeInCurrentUrl('/home.php');
 }
Пример #6
0
 /**
  * @param AcceptanceTester $I
  */
 public function _before(AcceptanceTester $I)
 {
     TestCommons::authentificate($I, 'owner');
 }