function MenuRouterTest::testThemeCallbackNoThemeRequested

Test the theme callback when no theme is requested.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterTest.php, line 243
Definition of Drupal\system\Tests\Menu\MenuRouterTest.

Class

MenuRouterTest
Tests menu router and hook_menu() functionality.

Namespace

Drupal\system\Tests\Menu

Code

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