Добавлен action для формы восстановления пароля

This commit is contained in:
ErickSkrauch
2016-05-10 23:25:04 +03:00
parent a29cb76cbf
commit c6547b6540
8 changed files with 166 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
<?php
namespace tests\codeception\api;
use tests\codeception\api\_pages\LoginRoute;
use tests\codeception\api\_pages\AuthenticationRoute;
/**
* Inherited Methods
@@ -23,7 +23,7 @@ class FunctionalTester extends \Codeception\Actor {
public function loggedInAsActiveAccount() {
$I = $this;
$route = new LoginRoute($I);
$route = new AuthenticationRoute($I);
$route->login('Admin', 'password_0');
$I->canSeeResponseIsJson();
$I->canSeeResponseJsonMatchesJsonPath('$.jwt');