function ResourceTestBase::createEntity
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::createEntity()
- 8.9.x core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::createEntity()
- 11.x core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::createEntity()
Creates the entity to be tested.
Return value
\Drupal\Core\Entity\EntityInterface The entity to be tested.
1 call to ResourceTestBase::createEntity()
- ResourceTestBase::setUp in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php
48 methods override ResourceTestBase::createEntity()
- ActionTest::createEntity in core/
modules/ jsonapi/ tests/ src/ Functional/ ActionTest.php - Creates the entity to be tested.
- ActionTest::createEntity in core/
modules/ action/ tests/ src/ Functional/ Jsonapi/ ActionTest.php - Creates the entity to be tested.
- BaseFieldOverrideTest::createEntity in core/
modules/ jsonapi/ tests/ src/ Functional/ BaseFieldOverrideTest.php - Creates the entity to be tested.
- BlockContentTest::createEntity in core/
modules/ jsonapi/ tests/ src/ Functional/ BlockContentTest.php - Creates the entity to be tested.
- BlockContentTypeTest::createEntity in core/
modules/ jsonapi/ tests/ src/ Functional/ BlockContentTypeTest.php - Creates the entity to be tested.
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php, line 395
Class
- ResourceTestBase
- Subclass this for every JSON:API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected abstract function createEntity();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.