function 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/tests/src/Functional/Menu/MenuRouterTest.php
Tests theme integration.

File

core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php, line 270

Class

MenuRouterTest
Tests menu router and default menu link functionality.

Namespace

Drupal\Tests\system\Functional\Menu

Code

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.");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.