mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-29 08:40:42 +02:00
Fixed failing SearchHandlerTest
This commit is contained in:
@@ -28,7 +28,7 @@ class SearchHandlerTest extends TestCase
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
}
|
||||
|
||||
public function test_it_returns_an_error_for_a_blank_search(): void
|
||||
public function test_it_returns_a_successful_response_for_a_blank_search(): void
|
||||
{
|
||||
$this->container->call(TwigProvider::class);
|
||||
|
||||
@@ -40,6 +40,6 @@ class SearchHandlerTest extends TestCase
|
||||
$response = $handler($request, new Response);
|
||||
|
||||
$this->assertInstanceOf(ResponseInterface::class, $response);
|
||||
$this->assertEquals(422, $response->getStatusCode());
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user