protected function ToolbarClaroOverridesTest::setUp in Drupal 9
Overrides BrowserTestBase::setUp
File
- core/
modules/ system/ tests/ src/ Functional/ Theme/ ToolbarClaroOverridesTest.php, line 34
Class
- ToolbarClaroOverridesTest
- Tests the loading of Claro assets on a non-Claro default theme.
Namespace
Drupal\Tests\system\Functional\ThemeCode
protected function setUp() : void {
parent::setUp();
$this->themeInstaller = $this->container
->get('theme_installer');
$this->themeManager = $this->container
->get('theme.manager');
$this->themeInstaller
->install([
'claro',
]);
// Create user with sufficient permissions to have the shortcut toolbar menu
// be available.
$this
->drupalLogin($this
->drupalCreateUser([
'access toolbar',
'access shortcuts',
'administer shortcuts',
'access content overview',
]));
}