apiRoutesContainingAny(['auth/me', 'frontend', 'dashboard', 'profile', 'preferences', 'notifications']), 0, 80); $statuses = ['suspended', 'disabled', 'inactive', 'pending', 'blocked']; foreach ($statuses as $status) { $actor = $this->createApiUserWithRole('parent', ['status' => $status]); foreach ($routes as $route) { $method = $this->primaryMethod($route); if ($method !== 'GET') { continue; } $uri = $route->uri(); $response = $this->requestAs($actor, 'GET', $uri); $this->assertControlled($response, 'GET', $uri); $this->assertNoServerError($response, 'account status '.$status.' at GET '.$uri); } } } }