You are here

public function SearchWithCustomPathTestCase::testSearchWithCustomPathOn404Check in Search 404 7

Test for search with custom path on 404 check.

File

./search404.test, line 170
Tests for search404.module.

Class

SearchWithCustomPathTestCase
Test cases for search with custom path.

Code

public function testSearchWithCustomPathOn404Check() {
  $this
    ->drupalLogin($this->big_user);
  $this
    ->drupalPost('admin/config/search/search404', array(
    'search404_do_custom_search' => TRUE,
  ), t('Save configuration'));
  $this
    ->drupalPost('admin/config/search/search404', array(
    'search404_custom_search_path' => 'search/testpath',
  ), t('Save configuration'));
}