protected function BlockContentTestBase::setUp in Drupal 10
Same name in this branch
- 10 core/modules/block_content/tests/src/Functional/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\BlockContentTestBase::setUp()
- 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
- 8 core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase::setUp()
- 9 core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase::setUp()
Overrides ViewTestBase::setUp
1 call to BlockContentTestBase::setUp()
- BlockContentFieldFilterTest::setUp in core/
modules/ block_content/ tests/ src/ Functional/ Views/ BlockContentFieldFilterTest.php
1 method overrides BlockContentTestBase::setUp()
- BlockContentFieldFilterTest::setUp in core/
modules/ block_content/ tests/ src/ Functional/ Views/ BlockContentFieldFilterTest.php
File
- core/
modules/ block_content/ tests/ src/ Functional/ Views/ BlockContentTestBase.php, line 42
Class
- BlockContentTestBase
- Base class for all block_content tests.
Namespace
Drupal\Tests\block_content\Functional\ViewsCode
protected function setUp($import_test_views = TRUE, $modules = [
'block_content_test_views',
]) : void {
parent::setUp($import_test_views, $modules);
// Ensure the basic bundle exists. This is provided by the standard profile.
$this
->createBlockContentType([
'id' => 'basic',
]);
$this->adminUser = $this
->drupalCreateUser($this->permissions);
}