mirror of
				https://github.com/linuxserver/Heimdall.git
				synced 2025-10-31 13:07:50 +09:00 
			
		
		
		
	Update search test
This commit is contained in:
		| @@ -32,22 +32,4 @@ class SearchTest extends TestCase | |||||||
|         $response->assertStatus(404); // Assert that the response status is 404 |         $response->assertStatus(404); // Assert that the response status is 404 | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public function test_search_page_without_query_parameter(): void |  | ||||||
|     { |  | ||||||
|         $provider = 'google'; // Example provider |  | ||||||
|  |  | ||||||
|         $response = $this->get(route('search', ['provider' => $provider])); |  | ||||||
|  |  | ||||||
|         $response->assertStatus(400); // Assert that the response status is 400 (Bad Request) |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     public function test_search_page_with_empty_query(): void |  | ||||||
|     { |  | ||||||
|         $provider = 'google'; // Example provider |  | ||||||
|         $query = ''; // Empty search term |  | ||||||
|  |  | ||||||
|         $response = $this->get(route('search', ['provider' => $provider, 'q' => $query])); |  | ||||||
|  |  | ||||||
|         $response->assertStatus(400); // Assert that the response status is 400 (Bad Request) |  | ||||||
|     } |  | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user