function ResourceTestBase::createEntity

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::createEntity()
  2. 10 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::createEntity()
  3. 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.
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.
BlockTest::createEntity in core/modules/jsonapi/tests/src/Functional/BlockTest.php
Creates the entity to be tested.

... See full list

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

Code

protected abstract function createEntity();

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