You are here

public function SearchByPageTester::getIndexTimes in Search by Page 6

Same name and namespace in other branches
  1. 7 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.

4 calls to SearchByPageTester::getIndexTimes()
SearchbyPageAttachReindexTest::testReindexingAutomatic in tests/search_by_page.test
Tests that cycling through attachment reindexing happens correctly.
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 219
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();
  $result = db_query('SELECT * FROM {sbp_path}');
  while ($item = db_fetch_object($result)) {
    $times[$item->pid] = $item->last_index_time;
  }
  return $times;
}