function ModuleProvidedThemeEngineTestCase::testEngineIsFoundAndWorking

Ensures that the module provided theme engine is found and used by core.

File

modules/simpletest/tests/theme.test, line 694

Class

ModuleProvidedThemeEngineTestCase
Tests module-provided theme engines.

Code

function testEngineIsFoundAndWorking() {
    variable_set('theme_default', 'test_theme_nyan_cat');
    variable_set('admin_theme', 'test_theme_nyan_cat');
    $this->drupalGet('theme-test/engine-info-test');
    $this->assertText('Miaou');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.