protected function NodeValidationTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/NodeValidationTest.php \Drupal\node\Tests\NodeValidationTest::setUp()
Set the default field storage backend for fields created during tests.
Overrides EntityUnitTestBase::setUp
File
- core/
modules/ node/ src/ Tests/ NodeValidationTest.php, line 29 - Contains \Drupal\node\Tests\NodeValidationTest.
Class
- NodeValidationTest
- Tests node validation constraints.
Namespace
Drupal\node\TestsCode
protected function setUp() {
parent::setUp();
// Create a node type for testing.
$type = entity_create('node_type', array(
'type' => 'page',
'name' => 'page',
));
$type
->save();
}