protected function EntityResourceTest::createEntityResource in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php \Drupal\Tests\jsonapi\Kernel\Controller\EntityResourceTest::createEntityResource()
Creates an instance of the subject under test.
Return value
\Drupal\jsonapi\Controller\EntityResource An EntityResource instance.
2 calls to EntityResourceTest::createEntityResource()
- EntityResourceTest::setUp in core/
modules/ jsonapi/ tests/ src/ Kernel/ Controller/ EntityResourceTest.php - EntityResourceTest::testGetPagedCollection in core/
modules/ jsonapi/ tests/ src/ Kernel/ Controller/ EntityResourceTest.php - @covers ::getCollection
File
- core/
modules/ jsonapi/ tests/ src/ Kernel/ Controller/ EntityResourceTest.php, line 180
Class
- EntityResourceTest
- @coversDefaultClass \Drupal\jsonapi\Controller\EntityResource @group jsonapi
Namespace
Drupal\Tests\jsonapi\Kernel\ControllerCode
protected function createEntityResource() {
return $this->container
->get('jsonapi.entity_resource');
}