function ClearCacheBlockTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/src/Functional/Block/ClearCacheBlockTest.php \Drupal\Tests\system\Functional\Block\ClearCacheBlockTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Block/ClearCacheBlockTest.php, line 43

Class

ClearCacheBlockTest
Tests clear cache block behavior.

Namespace

Drupal\Tests\system\Functional\Block

Code

protected function setUp() : void {
  parent::setUp();
  $admin_user = $this->drupalCreateUser([
    'administer site configuration',
  ]);
  $this->drupalLogin($admin_user);
  $this->clearCacheBlock = $this->placeBlock('system_clear_cache_block', [
    'label' => 'Clear cache block',
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.