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