function ResourceObjectNormalizerCacherTest::setUp
Same name and namespace in other branches
- 8.9.x core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php \Drupal\Tests\jsonapi\Kernel\EventSubscriber\ResourceObjectNormalizerCacherTest::setUp()
- 10 core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php \Drupal\Tests\jsonapi\Kernel\EventSubscriber\ResourceObjectNormalizerCacherTest::setUp()
- 11.x core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php \Drupal\Tests\jsonapi\Kernel\EventSubscriber\ResourceObjectNormalizerCacherTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ jsonapi/ tests/ src/ Kernel/ EventSubscriber/ ResourceObjectNormalizerCacherTest.php, line 59
Class
- ResourceObjectNormalizerCacherTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21jsonapi%21src%21EventSubscriber%21ResourceObjectNormalizationCacher.php/class/ResourceObjectNormalizationCacher/9" title="Caches entity normalizations after the response has been sent." class="local">\Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher</a> @group jsonapi
Namespace
Drupal\Tests\jsonapi\Kernel\EventSubscriberCode
protected function setUp() : void {
parent::setUp();
// Add the entity schemas.
$this->installEntitySchema('user');
// Add the additional table schemas.
$this->installSchema('system', [
'sequences',
]);
$this->installSchema('user', [
'users_data',
]);
$this->resourceTypeRepository = $this->container
->get('jsonapi.resource_type.repository');
$this->serializer = $this->container
->get('jsonapi.serializer');
$this->cacher = $this->container
->get('jsonapi.normalization_cacher');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.