You are here

public function SearchByPageTester::getIndexTimes in Search by Page 7

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

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 SearchByPageTester::getIndexTimes()
SearchbyPageAttachReindexTest::testReindexingAutomatic in tests/search_by_page.test
Tests that cycling through attachment reindexing happens correctly.
SearchByPageExtraUsersTest::testReindexingUsers in tests/search_by_page.test
Tests that no new users are created when reindexing.
SearchByPageNodesReindexTest::testReindexingAutomatic in tests/search_by_page.test
Tests that cycling through content reindexing happens correctly.
SearchByPagePathsReindexTest::testReindexingAutomatic in tests/search_by_page.test
Tests that cycling through path reindexing happens correctly.
SearchByPageUsersReindexTest::testReindexingAutomatic in tests/search_by_page.test
Tests that cycling through user reindexing happens correctly.

File

tests/search_by_page.test, line 210
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 getIndexTimes() {
  $times = array();
  return db_query('SELECT pid, last_index_time FROM {sbp_path}')
    ->fetchAllKeyed();
}