updated core to 7.63

This commit is contained in:
2019-01-27 14:26:06 +01:00
parent ccab226e12
commit 31cfa90501
172 changed files with 2256 additions and 624 deletions

View File

@@ -1944,6 +1944,30 @@ class SystemThemeFunctionalTest extends DrupalWebTestCase {
$this->assertEqual($elements[0]['src'], file_create_url($uploaded_filename));
}
/**
* Test the individual per-theme settings form.
*/
function testPerThemeSettings() {
// Enable the test theme and the module that controls it. Clear caches in
// between so that the module's hook_system_theme_info() implementation is
// correctly registered.
module_enable(array('theme_test'));
drupal_flush_all_caches();
theme_enable(array('test_theme'));
// Test that the theme-specific settings form can be saved and that the
// theme-specific checkbox is checked and unchecked as appropriate.
$this->drupalGet('admin/appearance/settings/test_theme');
$this->assertNoFieldChecked('edit-test-theme-checkbox', 'The test_theme_checkbox setting is unchecked.');
$this->drupalPost(NULL, array('test_theme_checkbox' => TRUE), t('Save configuration'));
$this->assertText('The test theme setting was saved.');
$this->assertFieldChecked('edit-test-theme-checkbox', 'The test_theme_checkbox setting is checked.');
$this->drupalPost(NULL, array('test_theme_checkbox' => FALSE), t('Save configuration'));
$this->assertText('The test theme setting was saved.');
$this->assertNoFieldChecked('edit-test-theme-checkbox', 'The test_theme_checkbox setting is unchecked.');
}
/**
* Test the administration theme functionality.
*/