protected function ChangedRemovedTest::setUp in Entity Share 8.3
Same name and namespace in other branches
- 8.2 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\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' => '',
],
'disabled' => TRUE,
],
],
])
->save();
$this
->postSetupFixture();
}