You are here

protected function ParagraphTest::setUp in Entity Share 8.3

Overrides EntityShareClientFunctionalTestBase::setUp

File

modules/entity_share_client/tests/src/Functional/ParagraphTest.php, line 57

Class

ParagraphTest
Functional test class for paragraphs.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityTypeManager
    ->getStorage('jsonapi_resource_config')
    ->create([
    'id' => 'paragraph--es_test',
    'disabled' => FALSE,
    'path' => 'paragraph/es_test',
    'resourceType' => 'paragraph--es_test',
    'resourceFields' => [
      'behavior_settings' => [
        'fieldName' => 'behavior_settings',
        'publicName' => 'behavior_settings',
        'enhancer' => [
          'id' => 'entity_share_serialized_data',
        ],
        'disabled' => FALSE,
      ],
    ],
  ])
    ->save();
  $this
    ->postSetupFixture();
}