function ThemeHookInitTestCase::testThemeInitializationHookInit
7.x theme.test | ThemeHookInitTestCase::testThemeInitializationHookInit() |
Test that the theme system can generate output when called by hook_init().
File
- drupal-7.x/
modules/ simpletest/ tests/ theme.test, line 393 - Tests for the theme API.
Class
- ThemeHookInitTestCase
- Functional test for initialization of the theme system in hook_init().
Code
function testThemeInitializationHookInit() {
$this->drupalGet('theme-test/hook-init');
$this->assertRaw('Themed output generated in hook_init()', 'Themed output generated in hook_init() correctly appears on the page.');
$this->assertRaw('bartik/css/style.css', "The default theme's CSS appears on the page when the theme system is initialized in hook_init().");
}