Добавлен обработчик для удаления сессии при логауте

This commit is contained in:
ErickSkrauch
2016-07-17 19:38:04 +03:00
parent 2063d7daa0
commit ae3c3b88de
5 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace tests\codeception\api;
use tests\codeception\api\_pages\AuthenticationRoute;
class LogoutCest {
public function testLoginEmailOrUsername(FunctionalTester $I) {
$route = new AuthenticationRoute($I);
$I->loggedInAsActiveAccount();
$route->logout();
$I->canSeeResponseContainsJson([
'success' => true,
]);
}
}