function MenuIncTestCase::testThemeCallbackFakeTheme in SimpleTest 7
Test the theme callback when it is set to use a theme that does not exist.
File
Class
- MenuIncTestCase
- @file Provides SimpleTests for menu.inc.
Code
function testThemeCallbackFakeTheme() {
$this
->drupalGet('menu-test/theme-callback/use-fake-theme');
$this
->assertText('Requested theme: fake_theme. Actual theme: garland.', t('The theme callback system falls back on the default theme when a theme that does not exist is requested.'));
$this
->assertRaw('garland/style.css', t("The default theme's CSS appears on the page."));
}