function EntityTypeBundleInfoTest::testClearCachedBundles
Tests the clearCachedBundles() method.
@legacy-covers ::clearCachedBundles
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeBundleInfoTest.php, line 153
Class
Namespace
Drupal\Tests\Core\EntityCode
public function testClearCachedBundles() : void {
$this->setUpEntityTypeDefinitions();
$this->typedDataManager
->clearCachedDefinitions()
->shouldBeCalled();
$this->cacheTagsInvalidator
->invalidateTags([
'entity_bundles',
])
->shouldBeCalled();
$this->entityTypeBundleInfo
->clearCachedBundles();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.