protected function ThemeTest::setUp in Drupal 8
Same name in this branch
- 8 core/modules/taxonomy/tests/src/Functional/ThemeTest.php \Drupal\Tests\taxonomy\Functional\ThemeTest::setUp()
- 8 core/modules/system/tests/src/Functional/System/ThemeTest.php \Drupal\Tests\system\Functional\System\ThemeTest::setUp()
- 8 core/modules/system/tests/src/Functional/Theme/ThemeTest.php \Drupal\Tests\system\Functional\Theme\ThemeTest::setUp()
- 8 core/modules/system/tests/src/Kernel/Theme/ThemeTest.php \Drupal\Tests\system\Kernel\Theme\ThemeTest::setUp()
Same name and namespace in other branches
- 9 core/modules/taxonomy/tests/src/Functional/ThemeTest.php \Drupal\Tests\taxonomy\Functional\ThemeTest::setUp()
Overrides TaxonomyTestBase::setUp
File
- core/
modules/ taxonomy/ tests/ src/ Functional/ ThemeTest.php, line 17
Class
- ThemeTest
- Verifies that various taxonomy pages use the expected theme.
Namespace
Drupal\Tests\taxonomy\FunctionalCode
protected function setUp() {
parent::setUp();
// Make sure we are using distinct default and administrative themes for
// the duration of these tests.
\Drupal::service('theme_installer')
->install([
'bartik',
'seven',
]);
$this
->config('system.theme')
->set('default', 'bartik')
->set('admin', 'seven')
->save();
// Create and log in as a user who has permission to add and edit taxonomy
// terms and view the administrative theme.
$admin_user = $this
->drupalCreateUser([
'administer taxonomy',
'view the administration theme',
]);
$this
->drupalLogin($admin_user);
}