You are here

protected function ChangedRemovedTest::setUp in Entity Share 8.2

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

Overrides EntityShareClientFunctionalTestBase::setUp

File

modules/entity_share_client/tests/src/Functional/ChangedRemovedTest.php, line 45

Class

ChangedRemovedTest
Functional test class to test behavior if changed attributes is removed.

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