You are here

public function Tester::createNode in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 tests/scripts/performance_test.php \Tester::createNode()

File

tests/scripts/performance_test.php, line 83

Class

Tester

Code

public function createNode() {

  // Create a node.
  $node = Node::create([
    'type' => 'simple_sitemap_performance_test',
    'title' => $this
      ->getRandomGenerator()
      ->sentences(5),
    'body' => $this
      ->getRandomGenerator()
      ->sentences(20),
  ]);
  $node
    ->save();
}