updated drupal core to 7.51

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-01 18:21:48 +01:00
parent 2ed8b48636
commit 1f780c974e
227 changed files with 2960 additions and 762 deletions

View File

@@ -462,6 +462,55 @@ class UpdateTestContribCase extends UpdateTestHelper {
$this->assertRaw(l(t('Update test base theme'), 'http://example.com/project/update_test_basetheme'), 'Link to the Update test base theme project appears.');
}
/**
* Tests that the admin theme is always notified about security updates.
*/
function testUpdateAdminThemeSecurityUpdate() {
// Disable the admin theme.
db_update('system')
->fields(array('status' => 0))
->condition('type', 'theme')
->condition('name', 'update_test_%', 'LIKE')
->execute();
variable_set('admin_theme', 'update_test_admintheme');
// Define the initial state for core and the themes.
$system_info = array(
'#all' => array(
'version' => '7.0',
),
'update_test_admintheme' => array(
'project' => 'update_test_admintheme',
'version' => '7.x-1.0',
'hidden' => FALSE,
),
'update_test_basetheme' => array(
'project' => 'update_test_basetheme',
'version' => '7.x-1.1',
'hidden' => FALSE,
),
'update_test_subtheme' => array(
'project' => 'update_test_subtheme',
'version' => '7.x-1.0',
'hidden' => FALSE,
),
);
variable_set('update_test_system_info', $system_info);
variable_set('update_check_disabled', FALSE);
$xml_mapping = array(
// This is enough because we don't check the update status of the admin
// theme. We want to check that the admin theme is included in the list.
'drupal' => '0',
);
$this->refreshUpdateStatus($xml_mapping);
// The admin theme is displayed even if it's disabled.
$this->assertText('update_test_admintheme', "The admin theme is checked for update even if it's disabled");
// The other disabled themes are not displayed.
$this->assertNoText('update_test_basetheme', 'Disabled theme is not checked for update in the list.');
$this->assertNoText('update_test_subtheme', 'Disabled theme is not checked for update in the list.');
}
/**
* Tests that disabled themes are only shown when desired.
*/
@@ -800,4 +849,4 @@ class UpdateCoreUnitTestCase extends DrupalUnitTestCase {
$this->assertEqual($url, $expected, "When ? is present, '$url' should be '$expected'.");
}
}
}