amAuthenticated($example[0]); $I->sendPOST('/api/authentication/logout'); $I->canSeeResponseContainsJson([ 'success' => true, ]); } protected function getLogoutCases() { yield 'active account' => ['admin']; yield 'account that not accepted the rules' => ['Veleyaba']; yield 'account marked for deleting' => ['DeletedAccount']; } }