diff options
Diffstat (limited to 'modules/search/search.test')
-rw-r--r-- | modules/search/search.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/search/search.test b/modules/search/search.test index 15cc1328d..de7b454e2 100644 --- a/modules/search/search.test +++ b/modules/search/search.test @@ -424,7 +424,10 @@ class SearchBlockTestCase extends DrupalWebTestCase { $this->assertText('Your search yielded no results'); // Test a search from the block on a 404 page. - $this->drupalPost('foo', $terms, t('Search')); + $this->drupalGet('foo'); + $this->assertResponse(404); + $this->drupalPost(NULL, $terms, t('Search')); + $this->assertNoResponse(404); $this->assertText('Your search yielded no results'); // Test a search from the block when it doesn't appear on the search page. |