public function Tester::createNode in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x tests/scripts/performance_test.php \Tester::createNode()
File
- tests/
scripts/ performance_test.php, line 81
Class
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();
}