defaultController = new DefaultController(); } public function testHomepage(): void { $client = static::createClient(); $client->request('GET', '/'); $this->assertEquals(200, $client->getResponse()->getStatusCode()); } public function testImprint(): void { $client = static::createClient(); // foreach(RESTResponseType::getChoices() as $format){ $format = 'html'; $url = 'api/rest/source/imprint.'.$format; $client->request('GET', $url); $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Route $url is not reachable."); // } } }