You are here

protected function MenuRouterTest::doTestThemeCallbackAdministrative in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackAdministrative()
  2. 9 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\Menu

Code

protected function doTestThemeCallbackAdministrative() {
  $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');
}