diff --git a/src/DependencyInjection/DbpRelayCheckinExtension.php b/src/DependencyInjection/DbpRelayCheckinExtension.php index ebf7099040f00d0f2f662e15181090d620ee58fc..e3b7add30860a2b9bef1589060149f09ebd79128 100644 --- a/src/DependencyInjection/DbpRelayCheckinExtension.php +++ b/src/DependencyInjection/DbpRelayCheckinExtension.php @@ -25,11 +25,11 @@ class DbpRelayCheckinExtension extends ConfigurableExtension implements PrependE public function loadInternal(array $mergedConfig, ContainerBuilder $container) { $pathsToHide = [ - '/checkin/check_in_actions/{identifier}', - '/checkin/guest_check_in_actions', - '/checkin/guest_check_in_actions/{identifier}', - '/checkin/check_out_actions', - '/checkin/check_out_actions/{identifier}', + '/checkin/check-in-actions/{identifier}', + '/checkin/guest-check-in-actions', + '/checkin/guest-check-in-actions/{identifier}', + '/checkin/check-out-actions', + '/checkin/check-out-actions/{identifier}', ]; foreach ($pathsToHide as $path) { diff --git a/tests/Test.php b/tests/Test.php index 6e5c029e6d6abc63145fe420720339d1c17bda74..45f20415258bae08b5634f7f93508b73c945133b 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -21,13 +21,13 @@ class Test extends ApiTestCase public function testIndex() { - $response = $this->client->request('GET', '/checkin/check_in_actions'); + $response = $this->client->request('GET', '/checkin/check-in-actions'); $this->assertEquals(Response::HTTP_UNAUTHORIZED, $response->getStatusCode()); } public function testJSONLD() { - $response = $this->client->request('GET', '/checkin/check_in_actions', ['headers' => ['HTTP_ACCEPT' => 'application/ld+json']]); + $response = $this->client->request('GET', '/checkin/check-in-actions', ['headers' => ['HTTP_ACCEPT' => 'application/ld+json']]); $this->assertEquals(Response::HTTP_UNAUTHORIZED, $response->getStatusCode()); $this->assertJson($response->getContent(false)); } @@ -35,10 +35,10 @@ class Test extends ApiTestCase public function testNotAuth() { $endpoints = [ - ['POST', '/checkin/check_in_actions', 401], - ['GET', '/checkin/check_in_actions', 401], - ['POST', '/checkin/check_out_actions', 401], - ['POST', '/checkin/guest_check_in_actions', 401], + ['POST', '/checkin/check-in-actions', 401], + ['GET', '/checkin/check-in-actions', 401], + ['POST', '/checkin/check-out-actions', 401], + ['POST', '/checkin/guest-check-in-actions', 401], ['GET', '/checkin/places', 401], ['GET', '/checkin/places/42', 401], ];