function BlockContentTestBase::setUp

Same name in this branch
  1. 10 core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase::setUp()
Same name in other branches
  1. 9 core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase::setUp()
  2. 9 core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()
  3. 8.9.x core/modules/block_content/src/Tests/Views/BlockContentTestBase.php \Drupal\block_content\Tests\Views\BlockContentTestBase::setUp()
  4. 8.9.x core/modules/block_content/src/Tests/BlockContentTestBase.php \Drupal\block_content\Tests\BlockContentTestBase::setUp()
  5. 8.9.x core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase::setUp()
  6. 8.9.x core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()
  7. 11.x core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase::setUp()
  8. 11.x core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()

Sets the test up.

Overrides BrowserTestBase::setUp

11 calls to BlockContentTestBase::setUp()
BlockContentCreationTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
Sets the test up.
BlockContentListTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentListTest.php
Sets the test up.
BlockContentListViewsTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
Sets the test up.
BlockContentRevisionDeleteTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentRevisionDeleteTest.php
Sets the test up.
BlockContentRevisionRevertTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentRevisionRevertTest.php
Sets the test up.

... See full list

11 methods override BlockContentTestBase::setUp()
BlockContentCreationTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
Sets the test up.
BlockContentListTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentListTest.php
Sets the test up.
BlockContentListViewsTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
Sets the test up.
BlockContentRevisionDeleteTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentRevisionDeleteTest.php
Sets the test up.
BlockContentRevisionRevertTest::setUp in core/modules/block_content/tests/src/Functional/BlockContentRevisionRevertTest.php
Sets the test up.

... See full list

File

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

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

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