function ClearCacheBlockTest::setUp

Overrides BrowserTestBase::setUp

File

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

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.