function ShortcutCacheTagsTest::setUp
Same name in this branch
- main core/modules/shortcut/tests/src/Functional/ShortcutCacheTagsTest.php \Drupal\Tests\shortcut\Functional\ShortcutCacheTagsTest::setUp()
Same name and namespace in other branches
- 11.x core/modules/shortcut/tests/src/Kernel/ShortcutCacheTagsTest.php \Drupal\Tests\shortcut\Kernel\ShortcutCacheTagsTest::setUp()
- 11.x core/modules/shortcut/tests/src/Functional/ShortcutCacheTagsTest.php \Drupal\Tests\shortcut\Functional\ShortcutCacheTagsTest::setUp()
- 10 core/modules/shortcut/tests/src/Functional/ShortcutCacheTagsTest.php \Drupal\Tests\shortcut\Functional\ShortcutCacheTagsTest::setUp()
- 9 core/modules/shortcut/tests/src/Functional/ShortcutCacheTagsTest.php \Drupal\Tests\shortcut\Functional\ShortcutCacheTagsTest::setUp()
- 8.9.x core/modules/shortcut/tests/src/Functional/ShortcutCacheTagsTest.php \Drupal\Tests\shortcut\Functional\ShortcutCacheTagsTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ shortcut/ tests/ src/ Kernel/ ShortcutCacheTagsTest.php, line 45
Class
- ShortcutCacheTagsTest
- Tests the Shortcut entity's cache tags.
Namespace
Drupal\Tests\shortcut\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('user');
$this->installEntitySchema('shortcut');
$this->installEntitySchema('shortcut_set');
$this->shortcutSet = ShortcutSet::create([
'id' => 'default',
'label' => 'Default',
]);
$this->shortcutSet
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.