You are here

protected function BlockContentTestBase::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/block_content/src/Tests/BlockContentTestBase.php \Drupal\block_content\Tests\BlockContentTestBase::setUp()
  2. 8 core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()
  3. 8 core/modules/block_content/src/Tests/Views/BlockContentTestBase.php \Drupal\block_content\Tests\Views\BlockContentTestBase::setUp()
  4. 8 core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\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');
}