function EntityTypeBundleInfoTest::testClearCachedBundles
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest::testClearCachedBundles()
- 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest::testClearCachedBundles()
- 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest::testClearCachedBundles()
Tests the clearCachedBundles() method.
@covers ::clearCachedBundles
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeBundleInfoTest.php, line 152
Class
- EntityTypeBundleInfoTest
- @coversDefaultClass \Drupal\Core\Entity\EntityTypeBundleInfo[[api-linebreak]] @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testClearCachedBundles() {
$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.