protected function NodeConditionTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/Condition/NodeConditionTest.php \Drupal\node\Tests\Condition\NodeConditionTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides EntityUnitTestBase::setUp
File
- core/
modules/ node/ src/ Tests/ Condition/ NodeConditionTest.php, line 21 - Contains \Drupal\node\Tests\Condition\NodeConditionTest.
Class
- NodeConditionTest
- Tests that conditions, provided by the node module, are working properly.
Namespace
Drupal\node\Tests\ConditionCode
protected function setUp() {
parent::setUp();
// Create the node bundles required for testing.
$type = entity_create('node_type', array(
'type' => 'page',
'name' => 'page',
));
$type
->save();
$type = entity_create('node_type', array(
'type' => 'article',
'name' => 'article',
));
$type
->save();
$type = entity_create('node_type', array(
'type' => 'test',
'name' => 'test',
));
$type
->save();
}