You are here

protected function BlockFieldTest::setUp in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/tests/src/Functional/BlockFieldTest.php \Drupal\Tests\entity_share_client\Functional\BlockFieldTest::setUp()

Overrides EntityShareClientFunctionalTestBase::setUp

File

modules/entity_share_client/tests/src/Functional/BlockFieldTest.php, line 44

Class

BlockFieldTest
Functional test class for block field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

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_block' => [
        'fieldName' => 'field_es_test_block',
        'publicName' => 'field_es_test_block',
        'enhancer' => [
          'id' => 'entity_share_block_field',
        ],
        'disabled' => FALSE,
      ],
    ],
  ])
    ->save();
  $this
    ->postSetupFixture();
}