updated core and some modules

This commit is contained in:
2017-02-27 13:42:16 +01:00
parent 8a300d7d79
commit b38c8e71d1
228 changed files with 2503 additions and 750 deletions
+31
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');
}
}