You are here

function MenuIncTestCase::testThemeCallbackInheritance in SimpleTest 7

Test that the theme callback is properly inherited.

File

tests/menu.test, line 47
Provides SimpleTests for menu.inc.

Class

MenuIncTestCase
@file Provides SimpleTests for menu.inc.

Code

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