Skip to content
Snippets Groups Projects
Commit 121acbd5 authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

#31661: kebap case refactoring for url paths - updated tests

parent 993e407c
Branches
Tags
No related merge requests found
Pipeline #108942 passed
...@@ -25,11 +25,11 @@ class DbpRelayCheckinExtension extends ConfigurableExtension implements PrependE ...@@ -25,11 +25,11 @@ class DbpRelayCheckinExtension extends ConfigurableExtension implements PrependE
public function loadInternal(array $mergedConfig, ContainerBuilder $container) public function loadInternal(array $mergedConfig, ContainerBuilder $container)
{ {
$pathsToHide = [ $pathsToHide = [
'/checkin/check_in_actions/{identifier}', '/checkin/check-in-actions/{identifier}',
'/checkin/guest_check_in_actions', '/checkin/guest-check-in-actions',
'/checkin/guest_check_in_actions/{identifier}', '/checkin/guest-check-in-actions/{identifier}',
'/checkin/check_out_actions', '/checkin/check-out-actions',
'/checkin/check_out_actions/{identifier}', '/checkin/check-out-actions/{identifier}',
]; ];
foreach ($pathsToHide as $path) { foreach ($pathsToHide as $path) {
......
...@@ -21,13 +21,13 @@ class Test extends ApiTestCase ...@@ -21,13 +21,13 @@ class Test extends ApiTestCase
public function testIndex() 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()); $this->assertEquals(Response::HTTP_UNAUTHORIZED, $response->getStatusCode());
} }
public function testJSONLD() 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->assertEquals(Response::HTTP_UNAUTHORIZED, $response->getStatusCode());
$this->assertJson($response->getContent(false)); $this->assertJson($response->getContent(false));
} }
...@@ -35,10 +35,10 @@ class Test extends ApiTestCase ...@@ -35,10 +35,10 @@ class Test extends ApiTestCase
public function testNotAuth() public function testNotAuth()
{ {
$endpoints = [ $endpoints = [
['POST', '/checkin/check_in_actions', 401], ['POST', '/checkin/check-in-actions', 401],
['GET', '/checkin/check_in_actions', 401], ['GET', '/checkin/check-in-actions', 401],
['POST', '/checkin/check_out_actions', 401], ['POST', '/checkin/check-out-actions', 401],
['POST', '/checkin/guest_check_in_actions', 401], ['POST', '/checkin/guest-check-in-actions', 401],
['GET', '/checkin/places', 401], ['GET', '/checkin/places', 401],
['GET', '/checkin/places/42', 401], ['GET', '/checkin/places/42', 401],
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment