MenuRouterTestCase::testThemeCallbackNoThemeRequested

7 menu.test MenuRouterTestCase::testThemeCallbackNoThemeRequested()
8 menu.test MenuRouterTestCase::testThemeCallbackNoThemeRequested()

Test the theme callback when no theme is requested.

File

modules/simpletest/tests/menu.test, line 282
Provides SimpleTests for menu.inc.

Code

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