mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Implemented register url
This commit is contained in:
parent
7fbe8ada81
commit
1c38409acf
@ -7,25 +7,22 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
|
|
||||||
class UrlIntegrationTest extends KernelTestCase
|
class UrlIntegrationTest extends KernelTestCase
|
||||||
{
|
{
|
||||||
|
const GET_URLS_STATUS = [
|
||||||
|
'login' => 200,
|
||||||
|
'imprint' => 200,
|
||||||
|
'register' => 301,
|
||||||
|
'logout' => 302,
|
||||||
|
];
|
||||||
|
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
self::bootKernel();
|
self::bootKernel();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function testParameterlesGetUrls(): void
|
||||||
* Tests urls which are in general reachable.
|
|
||||||
*/
|
|
||||||
public function testParameterlesGetRoutes200(): void
|
|
||||||
{
|
{
|
||||||
foreach (['/login', '/imprint'] as $url) {
|
foreach (self::GET_URLS_STATUS as $url => $status) {
|
||||||
$this->parameterlesGetRouteTest($url, 200);
|
$this->parameterlesGetRouteTest($url, $status);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testParameterlesGetRoutes302(): void
|
|
||||||
{
|
|
||||||
foreach (['/logout'] as $url) {
|
|
||||||
$this->parameterlesGetRouteTest($url, 302);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user