function TestEntityFieldManager::testClearEntityFieldInfo

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager::testClearEntityFieldInfo()
  2. 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager::testClearEntityFieldInfo()
  3. 11.x core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager::testClearEntityFieldInfo()

Allows the static caches to be cleared.

File

core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php, line 874

Class

TestEntityFieldManager

Namespace

Drupal\Tests\Core\Entity

Code

public function testClearEntityFieldInfo() : void {
    $this->baseFieldDefinitions = [];
    $this->fieldDefinitions = [];
    $this->fieldStorageDefinitions = [];
}

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