You are here

abstract protected function ResourceTestBase::createEntity in Drupal 9

Same name and namespace in other branches
  1. 8 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
49 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 398

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected abstract function createEntity();