function ConfigExportTest::setUp
Same name in other branches
- 11.x core/modules/config/tests/src/FunctionalJavascript/ConfigExportTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigExportTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ config/ tests/ src/ FunctionalJavascript/ ConfigExportTest.php, line 36
Class
- ConfigExportTest
- Tests the config export form.
Namespace
Drupal\Tests\config\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->drupalLogin($this->drupalCreateUser([
'administer blocks',
'access block library',
'administer block types',
'administer block content',
]));
// Create test blocks, so we know what the titles will be to check their order.
foreach ([
1,
2,
3,
4,
] as $num) {
$block_name = $this->blockNamePrefix . $num;
$new_block = $this->createBlockContent($block_name);
$this->drupalPlaceBlock('block_content:' . $new_block->uuid(), [
'id' => $block_name,
'label' => $this->randomMachineName(),
'theme' => $this->defaultTheme,
'region' => 'sidebar_first',
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.