protected function EntityBundleListCacheTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/Entity/EntityBundleListCacheTest.php \Drupal\FunctionalTests\Entity\EntityBundleListCacheTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
tests/ Drupal/ FunctionalTests/ Entity/ EntityBundleListCacheTest.php, line 35
Class
- EntityBundleListCacheTest
- Tests that bundle tags are invalidated when entities change.
Namespace
Drupal\FunctionalTests\EntityCode
protected function setUp() {
parent::setUp();
EntityTestBundle::create([
'id' => 'bundle_a',
'label' => 'Bundle A',
])
->save();
EntityTestBundle::create([
'id' => 'bundle_b',
'label' => 'Bundle B',
])
->save();
}