protected function MenuRouterTest::doTestThemeCallbackAdministrative in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Menu/MenuRouterTest.php \Drupal\system\Tests\Menu\MenuRouterTest::doTestThemeCallbackAdministrative()
Test the theme negotiation when it is set to use an administrative theme.
1 call to MenuRouterTest::doTestThemeCallbackAdministrative()
- MenuRouterTest::testThemeIntegration in core/
modules/ system/ src/ Tests/ Menu/ MenuRouterTest.php - Tests theme integration.
File
- core/
modules/ system/ src/ Tests/ Menu/ MenuRouterTest.php, line 272 - Contains \Drupal\system\Tests\Menu\MenuRouterTest.
Class
- MenuRouterTest
- Tests menu router and default menu link functionality.
Namespace
Drupal\system\Tests\MenuCode
protected function doTestThemeCallbackAdministrative() {
$this
->drupalGet('menu-test/theme-callback/use-admin-theme');
$this
->assertText('Active theme: seven. Actual theme: seven.', 'The administrative theme can be correctly set in a theme negotiation.');
$this
->assertRaw('seven/css/base/elements.css', "The administrative theme's CSS appears on the page.");
}