mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 10:42:16 +05:30
Поправлен тест для функционального теста формы смена пароля
This commit is contained in:
parent
93a94c656b
commit
5be5a732bd
@ -3,12 +3,13 @@ namespace tests\codeception\api\functional;
|
||||
|
||||
use Codeception\Scenario;
|
||||
use Codeception\Specify;
|
||||
use common\models\Account;
|
||||
use tests\codeception\api\_pages\AccountsRoute;
|
||||
use tests\codeception\api\_pages\LoginRoute;
|
||||
use tests\codeception\api\functional\_steps\AccountSteps;
|
||||
use tests\codeception\api\FunctionalTester;
|
||||
|
||||
class AccountsCurrentCest {
|
||||
class AccountsChangePasswordCest {
|
||||
|
||||
/**
|
||||
* @var AccountsRoute
|
||||
@ -19,6 +20,13 @@ class AccountsCurrentCest {
|
||||
$this->route = new AccountsRoute($I);
|
||||
}
|
||||
|
||||
public function _after(FunctionalTester $I) {
|
||||
/** @var Account $account */
|
||||
$account = Account::findOne(1);
|
||||
$account->setPassword('password_0');
|
||||
$account->save();
|
||||
}
|
||||
|
||||
public function testChangePassword(FunctionalTester $I, Scenario $scenario) {
|
||||
$I->wantTo('change my password');
|
||||
$I = new AccountSteps($scenario);
|
||||
|
Loading…
Reference in New Issue
Block a user