protected function DynamicEntityReferenceFieldDefaultValueTest::setUp in Dynamic Entity Reference 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/DynamicEntityReferenceFieldDefaultValueTest.php \Drupal\Tests\dynamic_entity_reference\Functional\DynamicEntityReferenceFieldDefaultValueTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ DynamicEntityReferenceFieldDefaultValueTest.php, line 58
Class
- DynamicEntityReferenceFieldDefaultValueTest
- Tests dynamic entity reference field default values storage in CMI.
Namespace
Drupal\Tests\dynamic_entity_reference\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create default content type.
$this
->drupalCreateContentType([
'type' => 'reference_content',
]);
$this
->drupalCreateContentType([
'type' => 'referenced_content',
]);
// Create admin user.
$this->adminUser = $this
->drupalCreateUser($this->permissions);
$this
->drupalLogin($this->adminUser);
}