invoiceninja/tests/_support/FunctionalTester.php

38 lines
1 KiB
PHP
Raw Normal View History

2015-08-20 18:09:04 +03:00
<?php
2015-08-30 15:08:15 +03:00
use Codeception\Util\Fixtures;
2015-08-20 18:09:04 +03:00
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
*
* @SuppressWarnings(PHPMD)
*/
class FunctionalTester extends \Codeception\Actor
{
use _generated\FunctionalTesterActions;
/**
* Define custom actions here
*/
2015-08-30 15:08:15 +03:00
function checkIfLogin(\FunctionalTester $I)
{
//if ($I->loadSessionSnapshot('login')) return;
$I->amOnPage('/login');
$I->fillField(['name' => 'email'], Fixtures::get('permissions_username'));
2015-08-30 15:08:15 +03:00
$I->fillField(['name' => 'password'], Fixtures::get('password'));
2015-10-13 10:11:44 +03:00
$I->click('#loginButton');
2015-08-30 15:08:15 +03:00
//$I->saveSessionSnapshot('login');
}
2015-08-20 18:09:04 +03:00
}