You are here

protected function EntityBundleListCacheTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Entity/EntityBundleListCacheTest.php \Drupal\FunctionalTests\Entity\EntityBundleListCacheTest::setUp()
  2. 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\Entity

Code

protected function setUp() : void {
  parent::setUp();
  EntityTestBundle::create([
    'id' => 'bundle_a',
    'label' => 'Bundle A',
  ])
    ->save();
  EntityTestBundle::create([
    'id' => 'bundle_b',
    'label' => 'Bundle B',
  ])
    ->save();
}