function RouterTest::testThemeCallbackFakeTheme

Test the theme callback when it is set to use a theme that does not exist.

File

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

Class

RouterTest
Tests menu router and hook_menu() functionality.

Namespace

Drupal\system\Tests\Menu

Code

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