You are here

protected function BlockContentTestBase::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()
  2. 10 core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase::setUp()
Same name and namespace in other branches
  1. 8 core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()
  2. 9 core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()

Sets the test up.

1 method overrides BlockContentTestBase::setUp()
BlockContentWizardTest::setUp in core/modules/block_content/tests/src/Functional/Views/BlockContentWizardTest.php
Sets the test up.

File

core/modules/block_content/tests/src/Functional/BlockContentTestBase.php, line 54

Class

BlockContentTestBase
Sets up block content types.

Namespace

Drupal\Tests\block_content\Functional

Code

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