protected function AuthcacheNodeHistoryTest::setNodeHistoryEntry in Authenticated User Page Caching (Authcache) 7.2
Seed node history table for the given user.
2 calls to AuthcacheNodeHistoryTest::setNodeHistoryEntry()
- AuthcacheNodeHistoryTest::testNodeHistorySettingCacheHit in modules/
authcache_node_history/ authcache_node_history.test - When page is delivered from cache, history should be recorded / reported.
- AuthcacheNodeHistoryTest::testNodeHistorySettingCacheMiss in modules/
authcache_node_history/ authcache_node_history.test - When page is rebuilt during the request.
File
- modules/
authcache_node_history/ authcache_node_history.test, line 87 - Test cases for the Authcache Node History module.
Class
- AuthcacheNodeHistoryTest
- Tests for markup substitution.
Code
protected function setNodeHistoryEntry($uid, $timestamp) {
db_merge('history')
->key(array(
'uid' => $uid,
'nid' => $this->node->nid,
))
->fields(array(
'timestamp' => $timestamp,
))
->execute();
}