function EntityResourceTestBase::createEntity
Same name and namespace in other branches
- 11.x core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase::createEntity()
- 10 core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase::createEntity()
- 8.9.x core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase::createEntity()
Creates the entity to be tested.
Return value
\Drupal\Core\Entity\EntityInterface The entity to be tested.
9 methods override EntityResourceTestBase::createEntity()
- ConfigurableLanguageResourceTestBase::createEntity in core/
modules/ language/ tests/ src/ Functional/ Rest/ ConfigurableLanguageResourceTestBase.php - Creates the entity to be tested.
- ContentLanguageSettingsResourceTestBase::createEntity in core/
modules/ language/ tests/ src/ Functional/ Rest/ ContentLanguageSettingsResourceTestBase.php - Creates the entity to be tested.
- EditorResourceTestBase::createEntity in core/
modules/ editor/ tests/ src/ Functional/ Rest/ EditorResourceTestBase.php - Creates the entity to be tested.
- FieldConfigResourceTestBase::createEntity in core/
modules/ field/ tests/ src/ Functional/ Rest/ FieldConfigResourceTestBase.php - Creates the entity to be tested.
- FieldStorageConfigResourceTestBase::createEntity in core/
modules/ field/ tests/ src/ Functional/ Rest/ FieldStorageConfigResourceTestBase.php - Creates the entity to be tested.
File
-
core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ EntityResourceTestBase.php, line 250
Class
- EntityResourceTestBase
- Defines a base class for testing all entity resources.
Namespace
Drupal\Tests\rest\Functional\EntityResourceCode
abstract protected function createEntity();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.