function StatisticsProBaseTestCase::createNode in Statistics Pro 6.2
Same name and namespace in other branches
- 6 tests/statspro.test \StatisticsProBaseTestCase::createNode()
1 call to StatisticsProBaseTestCase::createNode()
File
- tests/
statspro.test, line 101 - Functionality tests for Statistics Pro.
Class
- StatisticsProBaseTestCase
- Base class for Statistics Pro tests.
Code
function createNode($settings) {
$node = $this
->drupalCreateNode($settings);
if (isset($settings['changed']) && $settings['changed'] != $node->changed) {
$this
->setChangedTimestamp($node, $settings['changed']);
}
$this
->verbose('Node created: ' . var_export($node, TRUE));
$this->node_titles[] = $node->title;
return $node;
}