Skip to content

Commit

Permalink
params
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Feb 11, 2025
1 parent 17deb3f commit ed22611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/api/MiddlewareLanguageFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function discussions_are_filtered_by_language_parameter_api()

foreach ($languages as $code => $expectedTitle) {
$response = $this->send(
$this->request('GET', "/api/discussions?filter[language]=$code")
$this->request('GET', "/api/discussions")->withQueryParams(['filter' => ['language' => $code]])
);

$this->assertEquals(200, $response->getStatusCode(), "Unexpected status code for language $code");
Expand Down

0 comments on commit ed22611

Please sign in to comment.