function BlockContentTestBase::setUp

Sets the test up.

Overrides WebTestBase::setUp

File

core/modules/block_content/src/Tests/BlockContentTestBase.php, line 61

Class

BlockContentTestBase
Sets up block content types.

Namespace

Drupal\block_content\Tests

Code

protected function setUp() {
  parent::setUp();
  if ($this->autoCreateBasicBlockType) {
    $this->createBlockContentType('basic', TRUE);
  }
  $this->adminUser = $this->drupalCreateUser($this->permissions);
  $this->drupalPlaceBlock('local_actions_block');
}

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