client->request('GET', '/'); $response = $this->client->getResponse(); /* @var $response \Symfony\Component\HttpFoundation\Response */ $this->assertEquals(302, $response->getStatusCode()); $this->assertEquals('/setup/installer/', $response->headers->get('location')); } public function testRouteInstaller() { $this->client->request('GET', '/installer/'); $response = $this->client->getResponse(); /* @var $response \Symfony\Component\HttpFoundation\Response */ $this->assertEquals(302, $response->getStatusCode(), "test that response is a redirection " . $this->client->getResponse()->getContent()); $this->assertEquals('/setup/installer/step2/', $response->headers->get('location')); } public function testRouteInstallerStep2() { $this->client->request('GET', '/installer/step2/'); $response = $this->client->getResponse(); /* @var $response \Symfony\Component\HttpFoundation\Response */ $this->assertEquals(200, $response->getStatusCode()); $this->assertTrue($response->isOk()); } }