mirror of
https://github.com/elyby/accounts.git
synced 2024-10-30 15:33:21 +05:30
19 lines
388 B
PHP
19 lines
388 B
PHP
<?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,
|
|
]);
|
|
}
|
|
|
|
}
|