protected function JsonApiExtrasTest::setUp in Entity Share 8.2
Overrides EntityShareClientFunctionalTestBase::setUp
File
- modules/
entity_share_client/ tests/ src/ Functional/ JsonApiExtrasTest.php, line 44
Class
- JsonApiExtrasTest
- Functional test class for JSON:API Extras features.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
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' => [
'title' => [
'fieldName' => 'title',
'publicName' => $this
->randomMachineName(),
'enhancer' => [
'id' => '',
],
'disabled' => FALSE,
],
'langcode' => [
'fieldName' => 'langcode',
'publicName' => $this
->randomMachineName(),
'enhancer' => [
'id' => '',
],
'disabled' => FALSE,
],
],
])
->save();
$this
->postSetupFixture();
}