function EntityCacheTagsTestBase::createEntity

Same name in other branches
  1. 8.9.x core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php \Drupal\system\Tests\Entity\EntityCacheTagsTestBase::createEntity()
  2. 8.9.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()
  3. 10 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()
  4. 11.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()

Creates the entity to be tested.

Return value

\Drupal\Core\Entity\EntityInterface The entity to be tested.

1 call to EntityCacheTagsTestBase::createEntity()
EntityCacheTagsTestBase::setUp in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
9 methods override EntityCacheTagsTestBase::createEntity()
BlockContentCacheTagsTest::createEntity in core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
Creates the entity to be tested.
CommentCacheTagsTest::createEntity in core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php
Creates the entity to be tested.
FeedCacheTagsTest::createEntity in core/modules/aggregator/tests/src/Functional/FeedCacheTagsTest.php
Creates the entity to be tested.
ItemCacheTagsTest::createEntity in core/modules/aggregator/tests/src/Functional/ItemCacheTagsTest.php
Creates the entity to be tested.
MediaCacheTagsTest::createEntity in core/modules/media/tests/src/Functional/MediaCacheTagsTest.php
Creates the entity to be tested.

... See full list

File

core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php, line 126

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\Tests\system\Functional\Entity

Code

protected abstract function createEntity();

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