Skip to content

Commit

Permalink
IBX-4123: [Backport] Added /languages and /languages/{code} endpo…
Browse files Browse the repository at this point in the history
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
  • Loading branch information
Steveb-p committed Nov 9, 2023
1 parent dc270cc commit f36a54b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/bundle/Functional/LanguageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class LanguageTest extends RESTFunctionalTestCase

public function testLanguageListJson(): void
{
$request = $this->createHttpRequest('GET', '/api/ibexa/v2/languages', '', 'LanguageList+json');
$request = $this->createHttpRequest('GET', '/api/ezp/v2/languages', '', 'LanguageList+json');
$response = $this->sendHttpRequest($request);

self::assertHttpResponseCodeEquals($response, 200);
Expand All @@ -31,7 +31,7 @@ public function testLanguageListJson(): void

public function testLanguageListXml(): void
{
$request = $this->createHttpRequest('GET', '/api/ibexa/v2/languages');
$request = $this->createHttpRequest('GET', '/api/ezp/v2/languages');
$response = $this->sendHttpRequest($request);

self::assertHttpResponseCodeEquals($response, 200);
Expand All @@ -41,7 +41,7 @@ public function testLanguageListXml(): void

public function testLanguageViewJson(): void
{
$request = $this->createHttpRequest('GET', '/api/ibexa/v2/languages/eng-GB', '', 'LanguageList+json');
$request = $this->createHttpRequest('GET', '/api/ezp/v2/languages/eng-GB', '', 'LanguageList+json');
$response = $this->sendHttpRequest($request);

self::assertHttpResponseCodeEquals($response, 200);
Expand All @@ -54,7 +54,7 @@ public function testLanguageViewJson(): void

public function testLanguageViewXml(): void
{
$request = $this->createHttpRequest('GET', '/api/ibexa/v2/languages/eng-GB');
$request = $this->createHttpRequest('GET', '/api/ezp/v2/languages/eng-GB');
$response = $this->sendHttpRequest($request);

self::assertHttpResponseCodeEquals($response, 200);
Expand Down

0 comments on commit f36a54b

Please sign in to comment.