You are here

public function SearchByPageTester::doCronRun in Search by Page 7

Same name and namespace in other branches
  1. 6 tests/search_by_page.test \SearchByPageTester::doCronRun()

Updates the search index.

Logs current user out, and runs cron to make sure search content is indexed.

8 calls to SearchByPageTester::doCronRun()
SearchbyPageAttach2Test::setUp in tests/search_by_page.test
Sets up a Drupal site for running functional and integration tests.
SearchByPageAttachTest::setUp in tests/search_by_page.test
Sets up a Drupal site for running functional and integration tests.
SearchByPageNodesTest::setUp in tests/search_by_page.test
Sets up a Drupal site for running functional and integration tests.
SearchByPagePathsAliasTest::setUp in tests/search_by_page.test
Sets up a Drupal site for running functional and integration tests.
SearchByPagePathsNodesTest::setUp in tests/search_by_page.test
Sets up a Drupal site for running functional and integration tests.

... See full list

File

tests/search_by_page.test, line 175
Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com

Class

SearchByPageTester
Base class for testing Search by Page.

Code

public function doCronRun() {

  // Make sure we are logged out before cron run.
  if ($this->loggedInUser) {
    $this
      ->drupalLogout();
  }
  $this
    ->cronRun();
}