protected function TourCacheTagsTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/tour/tests/src/Functional/TourCacheTagsTest.php \Drupal\Tests\tour\Functional\TourCacheTagsTest::setUp()
Overrides PageCacheTagsTestBase::setUp
File
- core/
modules/ tour/ tests/ src/ Functional/ TourCacheTagsTest.php, line 31
Class
- TourCacheTagsTest
- Tests the Tour entity's cache tags.
Namespace
Drupal\Tests\tour\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Give anonymous users permission to view nodes, so that we can verify the
// cache tags of cached versions of node pages.
Role::load(RoleInterface::ANONYMOUS_ID)
->grantPermission('access tour')
->save();
}