accounts/tests/codeception/api/functional/LogoutCest.php

19 lines
380 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->amAuthenticated();
$route->logout();
$I->canSeeResponseContainsJson([
'success' => true,
]);
}
}