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