updated core to 7.54

This commit is contained in:
Bachir Soussi Chiadmi
2017-03-14 18:50:18 +01:00
parent 44557a31f0
commit b9ffb21f32
168 changed files with 1202 additions and 441 deletions

View File

@@ -646,3 +646,34 @@ class ThemeDebugMarkupTestCase extends DrupalWebTestCase {
}
}
/**
* Tests module-provided theme engines.
*/
class ModuleProvidedThemeEngineTestCase extends DrupalWebTestCase {
public static function getInfo() {
return array(
'name' => 'Theme engine test',
'description' => 'Tests module-provided theme engines.',
'group' => 'Theme',
);
}
function setUp() {
parent::setUp('theme_test');
theme_enable(array('test_theme', 'test_theme_nyan_cat'));
}
/**
* Ensures that the module provided theme engine is found and used by core.
*/
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');
}
}