You are here

abstract protected function ResourceTestBase::createEntity in JSON:API 8

Same name and namespace in other branches
  1. 8.2 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 tests/src/Functional/ResourceTestBase.php
45 methods override ResourceTestBase::createEntity()
ActionTest::createEntity in tests/src/Functional/ActionTest.php
Creates the entity to be tested.
BaseFieldOverrideTest::createEntity in tests/src/Functional/BaseFieldOverrideTest.php
Creates the entity to be tested.
BlockContentTest::createEntity in tests/src/Functional/BlockContentTest.php
Creates the entity to be tested.
BlockContentTypeTest::createEntity in tests/src/Functional/BlockContentTypeTest.php
Creates the entity to be tested.
BlockTest::createEntity in tests/src/Functional/BlockTest.php
Creates the entity to be tested.

... See full list

File

tests/src/Functional/ResourceTestBase.php, line 338

Class

ResourceTestBase
Subclass this for every JSON API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected abstract function createEntity();