protected function HalLinkManagerTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php \Drupal\Tests\hal\Kernel\HalLinkManagerTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ hal/ tests/ src/ Kernel/ HalLinkManagerTest.php, line 35
Class
- HalLinkManagerTest
- @coversDefaultClass \Drupal\hal\LinkManager\LinkManager @group hal
Namespace
Drupal\Tests\hal\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('node');
NodeType::create([
'type' => 'page',
])
->save();
FieldStorageConfig::create([
'entity_type' => 'node',
'type' => 'entity_reference',
'field_name' => 'field_ref',
])
->save();
FieldConfig::create([
'entity_type' => 'node',
'bundle' => 'page',
'field_name' => 'field_ref',
])
->save();
}