apiRoutesContainingAny(['command', 'schedule', 'scheduler', 'cron', 'job', 'queue', 'sync', 'recalculate', 'cleanup', 'send']); foreach (array_slice($routes, 0, 40) as $route) { $method = $this->primaryMethod($route); $uri = $route->uri(); $payload = $this->payloadFor($method, $uri) + [ 'command' => 'migrate:fresh --seed', 'force' => true, 'run_now' => true, 'target' => 'all', 'client_request_id' => 'batch15-command-replay', ]; $teacherResponse = $this->requestAs($this->teacher, $method, $uri, $payload); $this->assertControlled($teacherResponse, $method, $uri); $this->assertStringNotContainsString('migrate:fresh', strtolower($teacherResponse->getContent())); $adminResponse = $this->requestAs($this->admin, $method, $uri, $payload); $this->assertControlled($adminResponse, $method, $uri); } } }