request('GET', '/'); $this->assertIsRedirect($client, $this->createUrl('/homepage')); $client->followRedirect(); $this->assertIsRedirect($client, $this->createUrl('/login')); } public function testLoginPageIsRendered(): void { $client = self::createClient(); $this->request($client, '/login'); $response = $client->getResponse(); self::assertTrue($client->getResponse()->isSuccessful()); $content = $response->getContent(); self::assertStringContainsString('