function 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.