protected function LinkFieldTest::setUp in Entity Share 8.2
Same name and namespace in other branches
- 8.3 modules/entity_share_client/tests/src/Functional/LinkFieldTest.php \Drupal\Tests\entity_share_client\Functional\LinkFieldTest::setUp()
Overrides EntityShareClientFunctionalTestBase::setUp
File
- modules/
entity_share_client/ tests/ src/ Functional/ LinkFieldTest.php, line 45
Class
- LinkFieldTest
- Functional test class for link field.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function setUp() {
parent::setUp();
$this->entityTypeManager
->getStorage('jsonapi_resource_config')
->create([
'id' => 'node--es_test',
'disabled' => FALSE,
'path' => 'node/es_test',
'resourceType' => 'node--es_test',
'resourceFields' => [
'field_es_test_link' => [
'fieldName' => 'field_es_test_link',
'publicName' => 'field_es_test_link',
'enhancer' => [
'id' => 'uuid_link',
],
'disabled' => FALSE,
],
],
])
->save();
$this
->postSetupFixture();
}