You are here

protected function MenuRouterTest::doTestThemeCallbackNoThemeRequested in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackNoThemeRequested()

Test the theme negotiation when no theme is requested.

1 call to MenuRouterTest::doTestThemeCallbackNoThemeRequested()
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 330

Class

MenuRouterTest
Tests menu router and default menu link functionality.

Namespace

Drupal\Tests\system\Functional\Menu

Code

protected function doTestThemeCallbackNoThemeRequested() {
  $this
    ->drupalGet('menu-test/theme-callback/no-theme-requested');
  $this
    ->assertText('Active theme: bartik. Actual theme: bartik.', 'The theme negotiation system falls back on the default theme when no theme is requested.');
  $this
    ->assertRaw('bartik/css/base/elements.css', "The default theme's CSS appears on the page.");
}