diff --git a/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php b/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php index 80a6cb459..5f7043483 100644 --- a/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php +++ b/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php @@ -59,7 +59,7 @@ public function testSearchUsersByName(): void 'name' => 'mahmoudzzz', ]); - $response = $this->endpoint($this->endpoint . "?search=name:$user->name")->makeCall(); + $response = $this->endpoint($this->endpoint . "?search=name:" . urlencode($user->name))->makeCall(); $response->assertStatus(200); $response->assertJson(