checkIfLogin() public method

Define custom actions here
public checkIfLogin ( AcceptanceTester $I )
$I AcceptanceTester
示例#1
0
 public function _before(AcceptanceTester $I)
 {
     $I->checkIfLogin($I);
     $this->faker = Factory::create();
 }
示例#2
0
<?php

$I = new AcceptanceTester($scenario);
$I->checkIfLogin($I);
$I->wantTo('Test all pages load');
// Top level navigation
$I->amOnPage('/dashboard');
$I->see('Total Revenue');
$I->amOnPage('/clients');
$I->see('Clients', 'li');
$I->amOnPage('/clients/create');
$I->see('Clients', 'li');
$I->see('Create');
$I->amOnPage('/credits');
$I->see('Credits', 'li');
$I->amOnPage('/credits/create');
$I->see('Credits', 'li');
$I->see('Create');
$I->amOnPage('/tasks');
$I->see('Tasks', 'li');
$I->amOnPage('/tasks/create');
$I->see('Tasks', 'li');
$I->see('Create');
$I->amOnPage('/invoices');
$I->see('Invoices', 'li');
$I->amOnPage('/invoices/create');
$I->see('Invoices', 'li');
$I->see('Create');
$I->amOnPage('/quotes');
$I->see('Quotes', 'li');
$I->amOnPage('/quotes/create');