mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-18 19:09:20 +02:00
Implemented tests for all imprint types
This commit is contained in:
parent
3e91aed050
commit
938dd6274d
@ -25,17 +25,19 @@ class DefaultControllerTest extends WebTestCase
|
|||||||
{
|
{
|
||||||
$client = static::createClient();
|
$client = static::createClient();
|
||||||
$client->request('GET', '/');
|
$client->request('GET', '/');
|
||||||
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
$this->assertEquals(200, $client->getResponse()
|
||||||
|
->getStatusCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testImprint(): void
|
public function testImprint(): void
|
||||||
{
|
{
|
||||||
$client = static::createClient();
|
$client = static::createClient();
|
||||||
// foreach(RESTResponseType::getChoices() as $format){
|
foreach (RESTResponseType::getChoices() as $format) {
|
||||||
$format = 'html';
|
$format = 'html';
|
||||||
$url = 'api/rest/source/imprint.'.$format;
|
$url = '/api/rest/source/imprint.'.$format;
|
||||||
$client->request('GET', $url);
|
$client->request('GET', $url);
|
||||||
$this->assertEquals(200, $client->getResponse()->getStatusCode(), "Route $url is not reachable.");
|
$this->assertEquals(200, $client->getResponse()
|
||||||
// }
|
->getStatusCode(), "Route $url is not reachable.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user