You are here

protected function LinkFieldTest::setUp in Entity Share 8.3

Same name and namespace in other branches
  1. 8.2 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 46

Class

LinkFieldTest
Functional test class for link field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function setUp() : void {
  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' => 'entity_share_uuid_link',
        ],
        'disabled' => FALSE,
      ],
    ],
  ])
    ->save();
  $this
    ->postSetupFixture();
}