function EntityResourceTest::createEntityResource
Same name in other branches
- 8.9.x core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php \Drupal\Tests\jsonapi\Kernel\Controller\EntityResourceTest::createEntityResource()
- 10 core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php \Drupal\Tests\jsonapi\Kernel\Controller\EntityResourceTest::createEntityResource()
- 11.x 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 188
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.