function MenuRouterTest::testThemeCallbackInheritance

Test that the theme callback is properly inherited.

File

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

Class

MenuRouterTest
Tests menu router and hook_menu() functionality.

Namespace

Drupal\system\Tests\Menu

Code

function testThemeCallbackInheritance() {
  theme_enable(array(
    $this->admin_theme,
  ));
  $this
    ->drupalGet('menu-test/theme-callback/use-admin-theme/inheritance');
  $this
    ->assertText('Custom theme: seven. Actual theme: seven. Theme callback inheritance is being tested.', 'Theme callback inheritance correctly uses the administrative theme.');
  $this
    ->assertRaw('seven/style.css', "The administrative theme's CSS appears on the page.");
}