function EntityCacheTagsTestBase::createEntity

Same name in this branch
  1. 8.9.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()
Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()
  2. 10 core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()
  3. 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/src/Tests/Entity/EntityCacheTagsTestBase.php
Sets up a Drupal site for running functional and integration tests.

File

core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php, line 133

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\system\Tests\Entity

Code

protected abstract function createEntity();

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