public function SearchByPageTesterTest::doCronRun in Search by Page 8
Updates the search index.
Logs current user out, and runs cron to make sure search content is indexed.
8 calls to SearchByPageTesterTest::doCronRun()
- SearchbyPageAttach2Test::setUp in tests/
src/ Functional/ search_by_page.test - SearchByPageAttachTest::setUp in tests/
src/ Functional/ search_by_page.test - SearchByPageNodesTest::setUp in tests/
src/ Functional/ search_by_page.test - SearchByPagePathsAliasTest::setUp in tests/
src/ Functional/ search_by_page.test - SearchByPagePathsNodesTest::setUp in tests/
src/ Functional/ search_by_page.test
File
- tests/
src/ Functional/ SearchByPageTesterTest.php, line 109 - General Functional Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com
Class
- SearchByPageTesterTest
- Base class for testing Search by Page.
Namespace
Drupal\Tests\search_by_page\FunctionalCode
public function doCronRun() {
// Make sure we are logged out before cron run.
if ($this->loggedInUser) {
$this
->drupalLogout();
}
$this
->drupalGet('cron/' . \Drupal::state()
->get('system.cron_key'));
}