protected function MetatagViewsBasicsTest::setUp in Metatag 8
Overrides BrowserTestBase::setUp
File
- metatag_views/
tests/ src/ Functional/ MetatagViewsBasicsTest.php, line 49
Class
- MetatagViewsBasicsTest
- Confirm the defaults functionality works.
Namespace
Drupal\Tests\metatag_views\FunctionalCode
protected function setUp() {
parent::setUp();
// Enable the Bartik theme and make it the default.
// @todo remove this once 8.8 is required and $defaultTheme can be
// relied upon.
$theme = 'bartik';
\Drupal::service('theme_installer')
->install([
$theme,
]);
$this
->config('system.theme')
->set('default', $theme);
// Place the local actions block in the theme so that we can assert the
// presence of local actions and such.
$this
->drupalPlaceBlock('local_actions_block', [
'region' => 'content',
'theme' => $theme,
]);
}