You are here

function StatisticsProBaseTestCase::setChangedTimestamp in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 tests/statspro.test \StatisticsProBaseTestCase::setChangedTimestamp()
1 call to StatisticsProBaseTestCase::setChangedTimestamp()
StatisticsProBaseTestCase::createNode in tests/statspro.test

File

tests/statspro.test, line 92
Functionality tests for Statistics Pro.

Class

StatisticsProBaseTestCase
Base class for Statistics Pro tests.

Code

function setChangedTimestamp($node, $new_changed_time) {
  db_query('UPDATE {node}
        SET changed = %d
        WHERE nid = %d', $new_changed_time, $node->nid);
  db_query('UPDATE {node_revisions}
        SET timestamp = %d
        WHERE vid = %d', $new_changed_time, $node->vid);
}