You are here

function MenuIncTestCase::testThemeCallbackNoThemeRequested in SimpleTest 7

Test the theme callback when no theme is requested.

File

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

Class

MenuIncTestCase
@file Provides SimpleTests for menu.inc.

Code

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