get('/automation/scheduler')->assertNotFound(); $this->get('/automation/scheduler?token=irgendwas')->assertNotFound(); } public function test_scheduler_runs_with_the_configured_token(): void { config(['fewo.scheduler_token' => 'geheim']); $this->get('/automation/scheduler?token=falsch')->assertNotFound(); $this->getJson('/automation/scheduler?token=geheim')->assertOk()->assertJsonStructure(['ran_at', 'output']); } }