protected function FieldDefaultValueCallbackTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field/tests/src/Functional/FieldDefaultValueCallbackTest.php \Drupal\Tests\field\Functional\FieldDefaultValueCallbackTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ field/ tests/ src/ Functional/ FieldDefaultValueCallbackTest.php, line 38
Class
- FieldDefaultValueCallbackTest
- Tests the default value callback.
Namespace
Drupal\Tests\field\FunctionalCode
protected function setUp() {
parent::setUp();
$this->fieldName = 'field_test';
// Create Article node types.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
}