protected function UrlTest::setUp in Token 8
Same name in this branch
- 8 tests/src/Functional/UrlTest.php \Drupal\Tests\token\Functional\UrlTest::setUp()
- 8 tests/src/Kernel/UrlTest.php \Drupal\Tests\token\Kernel\UrlTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ UrlTest.php, line 49
Class
- UrlTest
- Tests URL tokens.
Namespace
Drupal\Tests\token\FunctionalCode
protected function setUp() {
parent::setUp();
$node_type = NodeType::create([
'type' => 'article',
'name' => 'Article',
]);
$node_type
->save();
$this->node1 = Node::create([
'type' => 'article',
'title' => 'Test Node 1',
]);
$this->node1
->save();
$this->node2 = Node::create([
'type' => 'article',
'title' => 'Test Node 2',
]);
$this->node2
->save();
}