You are here

function StatisticsProBaseTestCase::createNode in Statistics Pro 6

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

File

tests/statspro.test, line 110
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;
}