protected function ConfigUpdateTest::setUp in Configuration Update Manager 8
Overrides BrowserTestBase::setUp
File
- config_update_ui/
tests/ src/ Functional/ ConfigUpdateTest.php, line 52
Class
- ConfigUpdateTest
- Verify the config revert report and its links.
Namespace
Drupal\Tests\config_update_ui\FunctionalCode
protected function setUp() {
parent::setUp();
// Create user and log in.
$this->adminUser = $this
->createUser([
'access administration pages',
'administer search',
'view config updates report',
'synchronize configuration',
'export configuration',
'import configuration',
'revert configuration',
'delete configuration',
'administer filters',
]);
$this
->drupalLogin($this->adminUser);
// Make sure local tasks and page title are showing.
$this
->placeBlock('local_tasks_block');
$this
->placeBlock('page_title_block');
// Load the Drush include file so that its functions can be tested, plus
// the Drush testing include file.
module_load_include('inc', 'config_update_ui', 'config_update_ui.drush_testing');
module_load_include('inc', 'config_update_ui', 'config_update_ui.drush');
}