protected function SkipImportedTest::setUp in Entity Share 8.3
Overrides EntityShareClientFunctionalTestBase::setUp
File
- modules/
entity_share_client/ tests/ src/ Functional/ SkipImportedTest.php, line 35
Class
- SkipImportedTest
- Functional test class to test import plugin "Skip imported".
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
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' => [
'changed' => [
'fieldName' => 'changed',
'publicName' => 'changed',
'enhancer' => [
'id' => '',
],
// Field 'changed' must appear as JSON data attribute.
'disabled' => FALSE,
],
],
])
->save();
$this
->postSetupFixture();
}