You are here

function twig_extender_tests_install in Twig Extender 8

Same name and namespace in other branches
  1. 8.2 twig_extender_tests/twig_extender_tests.install \twig_extender_tests_install()

File

twig_extender_tests/twig_extender_tests.install, line 5

Code

function twig_extender_tests_install() {
  Node::create([
    'type' => 'test_twig_extender_node',
    'title' => 'Twig Extender Node 1',
    'status' => 1,
    'path' => [
      'alias' => '/test/node/1-node',
    ],
  ])
    ->save();
  Node::create([
    'type' => 'test_twig_extender_node',
    'title' => 'Twig Extender Node 2',
    'status' => 1,
    'path' => [
      'alias' => '/test/node/2-node',
    ],
  ])
    ->save();
}