You are here

public function CurrentSearchBugFixTestCase::testMultipleBlocks in Facet API 7

Same name and namespace in other branches
  1. 7.2 contrib/current_search/tests/current_search.test \CurrentSearchBugFixTestCase::testMultipleBlocks()

Tests bug fixed at http://drupal.org/node/1668980.

See also

http://drupal.org/node/1668980

File

contrib/current_search/tests/current_search.test, line 137
Test cases for the Current Search Blocks module.

Class

CurrentSearchBugFixTestCase
Test cases for operations taken through the admin UI.

Code

public function testMultipleBlocks() {

  // Enable the standard current search block via the UI.
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->currentSearchEnableBlock('standard');
  $this
    ->currentSearchEnableBlock('second');

  // Test that block is positioned on the search page.
  $this
    ->drupalLogin($this->authenticatedUser);
  $this
    ->drupalGet('facetapi_test/search', array(
    'query' => array(
      'keys' => 'test',
    ),
  ));
  $this
    ->assertRaw('Second current search block', t('Second current search block displayed on search page.'), 'Current Search Blocks');
  $this
    ->facetapiIssueMessage('http://drupal.org/node/1668980');
}