function MenuRouterTest::doTestThemeCallbackAdministrative
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackAdministrative()
- 8.9.x core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackAdministrative()
- 10 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackAdministrative()
Tests theme negotiation for 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 274
Class
- MenuRouterTest
- Tests menu router and default menu link functionality.
Namespace
Drupal\Tests\system\Functional\MenuCode
protected function doTestThemeCallbackAdministrative() : void {
$this->drupalGet('menu-test/theme-callback/use-admin-theme');
$this->assertSession()
->pageTextContains('Active theme: claro. Actual theme: claro.');
$this->assertSession()
->responseContains('claro/css/base/elements.css');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.