function ContentEntityCacheTest::setUp
Overrides KernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ContentEntityCacheTest.php, line 42
Class
- ContentEntityCacheTest
- Tests the entity static cache when used by content entities.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
// The user entity is required, as the content entities we are testing with
// have an entity reference field with the user entity type as as target.
$this->installEntitySchema('user');
$this->installEntitySchema($this->nonRevEntityTypeId);
$this->installEntitySchema($this->revEntityTypeId);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.