From 1c38409acff88011766b26beae3d0dd2db071ae7 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 22 Nov 2018 23:18:47 +0100 Subject: [PATCH] Implemented register url --- .../tests/Integration/UrlIntegrationTest.php | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/application/tests/Integration/UrlIntegrationTest.php b/application/tests/Integration/UrlIntegrationTest.php index bf9602f..da24a8e 100644 --- a/application/tests/Integration/UrlIntegrationTest.php +++ b/application/tests/Integration/UrlIntegrationTest.php @@ -7,25 +7,22 @@ use Symfony\Component\HttpFoundation\Request; class UrlIntegrationTest extends KernelTestCase { + const GET_URLS_STATUS = [ + 'login' => 200, + 'imprint' => 200, + 'register' => 301, + 'logout' => 302, + ]; + public function setUp(): void { self::bootKernel(); } - /** - * Tests urls which are in general reachable. - */ - public function testParameterlesGetRoutes200(): void + public function testParameterlesGetUrls(): void { - foreach (['/login', '/imprint'] as $url) { - $this->parameterlesGetRouteTest($url, 200); - } - } - - public function testParameterlesGetRoutes302(): void - { - foreach (['/logout'] as $url) { - $this->parameterlesGetRouteTest($url, 302); + foreach (self::GET_URLS_STATUS as $url => $status) { + $this->parameterlesGetRouteTest($url, $status); } }