You are here

public function SearchByPageTesterTest::getIndexTimes in Search by Page 8

Helper function: returns an array of last index times for items.

Return value

Array whose keys are the internal Search by Page IDs for the items, and whose values are the last time the item was indexed by Search by Page.

5 calls to SearchByPageTesterTest::getIndexTimes()
SearchbyPageAttachReindexTest::testReindexingAutomatic in tests/src/Functional/search_by_page.test
Tests that cycling through attachment reindexing happens correctly.
SearchByPageExtraUsersTest::testReindexingUsers in tests/src/Functional/search_by_page.test
Tests that no new users are created when reindexing.
SearchByPageNodesReindexTest::testReindexingAutomatic in tests/src/Functional/search_by_page.test
Tests that cycling through content reindexing happens correctly.
SearchByPagePathsReindexTest::testReindexingAutomatic in tests/src/Functional/search_by_page.test
Tests that cycling through path reindexing happens correctly.
SearchByPageUsersReindexTest::testReindexingAutomatic in tests/src/Functional/search_by_page.test
Tests that cycling through user reindexing happens correctly.

File

tests/src/Functional/SearchByPageTesterTest.php, line 143
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\Functional

Code

public function getIndexTimes() {
  $times = [];
  return \Drupal::database()
    ->query('SELECT pid, last_index_time FROM {search_by_page_path}')
    ->fetchAllKeyed();
}