function EntityResourceTestBase::createEntity

Same name and namespace in other branches
  1. 11.x core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase::createEntity()
  2. 10 core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase::createEntity()
  3. 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.

7 methods override EntityResourceTestBase::createEntity()
CommentResourceTestBase::createEntity in core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
Creates the entity to be tested.
ConfigurableLanguageResourceTestBase::createEntity in core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php
Creates the entity to be tested.
DateFormatResourceTestBase::createEntity in core/tests/Drupal/FunctionalTests/Rest/DateFormatResourceTestBase.php
Creates the entity to be tested.
FileResourceTestBase::createEntity in core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php
Creates the entity to be tested.
FilterFormatResourceTestBase::createEntity in core/modules/filter/tests/src/Functional/Rest/FilterFormatResourceTestBase.php
Creates the entity to be tested.

... See full list

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\EntityResource

Code

abstract protected function createEntity();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.