You are here

protected function AuthcacheNodeHistoryTest::getNodeHistoryEntries in Authenticated User Page Caching (Authcache) 7.2

Return a list of timestamps from the node history table keyed by nid.

2 calls to AuthcacheNodeHistoryTest::getNodeHistoryEntries()
AuthcacheNodeHistoryTest::testNodeHistoryNoTagNewOnFront in modules/authcache_node_history/authcache_node_history.test
Ensure that node history setting is not embedded when not on a node-page.
AuthcacheNodeHistoryTest::testNodeHistoryTagNewSetting in modules/authcache_node_history/authcache_node_history.test
Ensure that node history setting is embedded for authenticated users.

File

modules/authcache_node_history/authcache_node_history.test, line 77
Test cases for the Authcache Node History module.

Class

AuthcacheNodeHistoryTest
Tests for markup substitution.

Code

protected function getNodeHistoryEntries($uid) {
  return db_query('SELECT nid, timestamp FROM {history} WHERE uid = :uid AND nid = :nid ', array(
    ':uid' => $uid,
    ':nid' => $this->node->nid,
  ))
    ->fetchAllKeyed();
}