You are here

protected function BlockContentTestBase::setUp in Zircon Profile 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/src/Tests/Views/BlockContentTestBase.php \Drupal\block_content\Tests\Views\BlockContentTestBase::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/block_content/src/Tests/BlockContentTestBase.php \Drupal\block_content\Tests\BlockContentTestBase::setUp()

Sets the test up.

Overrides WebTestBase::setUp

5 calls to BlockContentTestBase::setUp()
BlockContentCreationTest::setUp in core/modules/block_content/src/Tests/BlockContentCreationTest.php
Sets the test up.
BlockContentRevisionsTest::setUp in core/modules/block_content/src/Tests/BlockContentRevisionsTest.php
Sets the test up.
BlockContentSaveTest::setUp in core/modules/block_content/src/Tests/BlockContentSaveTest.php
Sets the test up.
BlockContentTypeTest::setUp in core/modules/block_content/src/Tests/BlockContentTypeTest.php
Sets the test up.
PageEditTest::setUp in core/modules/block_content/src/Tests/PageEditTest.php
Sets the test up.
5 methods override BlockContentTestBase::setUp()
BlockContentCreationTest::setUp in core/modules/block_content/src/Tests/BlockContentCreationTest.php
Sets the test up.
BlockContentRevisionsTest::setUp in core/modules/block_content/src/Tests/BlockContentRevisionsTest.php
Sets the test up.
BlockContentSaveTest::setUp in core/modules/block_content/src/Tests/BlockContentSaveTest.php
Sets the test up.
BlockContentTypeTest::setUp in core/modules/block_content/src/Tests/BlockContentTypeTest.php
Sets the test up.
PageEditTest::setUp in core/modules/block_content/src/Tests/PageEditTest.php
Sets the test up.

File

core/modules/block_content/src/Tests/BlockContentTestBase.php, line 55
Contains \Drupal\block_content\Tests\BlockContentTestBase.

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');
}