protected function NodeTokenReplaceTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/NodeTokenReplaceTest.php \Drupal\node\Tests\NodeTokenReplaceTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides TokenReplaceUnitTestBase::setUp
File
- core/
modules/ node/ src/ Tests/ NodeTokenReplaceTest.php, line 33 - Contains \Drupal\node\Tests\NodeTokenReplaceTest.
Class
- NodeTokenReplaceTest
- Generates text using placeholders for dummy content to check node token replacement.
Namespace
Drupal\node\TestsCode
protected function setUp() {
parent::setUp();
$this
->installConfig(array(
'filter',
'node',
));
$node_type = entity_create('node_type', array(
'type' => 'article',
'name' => 'Article',
));
$node_type
->save();
node_add_body_field($node_type);
}