You are here

protected function TemplateSetWithYamlTest::setUp in Block Style Plugins 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/TemplateSetWithYamlTest.php \Drupal\Tests\block_style_plugins\Functional\TemplateSetWithYamlTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/TemplateSetWithYamlTest.php, line 37

Class

TemplateSetWithYamlTest
Test a Yaml only configuration.

Namespace

Drupal\Tests\block_style_plugins\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer blocks',
    'access administration pages',
  ]);
  $this
    ->drupalLogin($this->adminUser);

  // Place the "Powered By Drupal" block.
  $this
    ->drupalPlaceBlock('system_powered_by_block', [
    'id' => 'templatetest',
    'region' => 'content',
  ]);
}