protected function MenuRouterTest::doTestThemeCallbackAdministrative in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackAdministrative()
Tests 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\MenuCode
protected function doTestThemeCallbackAdministrative() {
$this
->drupalGet('menu-test/theme-callback/use-admin-theme');
$this
->assertSession()
->pageTextContains('Active theme: seven. Actual theme: seven.');
$this
->assertSession()
->responseContains('seven/css/base/elements.css');
}