request('GET', '/storyline'); self::assertResponseRedirects('/login'); } public function testUnknownChapterAlsoGoesThroughTheLoginGate(): void { $client = static::createClient(); $client->request('GET', '/storyline/does-not-exist'); // Behind IS_AUTHENTICATED_FULLY, so an anonymous hit redirects rather // than 404s; the 404 path itself is covered in the render test below. self::assertResponseRedirects('/login'); } }