You are here

function MenuIncTestCase::testThemeCallbackAdministrative in SimpleTest 7

Test the theme callback when it is set to use an administrative theme.

File

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

Class

MenuIncTestCase
@file Provides SimpleTests for menu.inc.

Code

function testThemeCallbackAdministrative() {
  $this
    ->drupalGet('menu-test/theme-callback/use-admin-theme');
  $this
    ->assertText('Requested theme: seven. Actual theme: seven.', t('The administrative theme can be correctly set in a theme callback.'));
  $this
    ->assertRaw('seven/style.css', t("The administrative theme's CSS appears on the page."));
}