diff --git a/core/modules/update/src/Tests/UpdateContribTest.php b/core/modules/update/src/Tests/UpdateContribTest.php index 786c6ac..ec64cf8 100644 --- a/core/modules/update/src/Tests/UpdateContribTest.php +++ b/core/modules/update/src/Tests/UpdateContribTest.php @@ -350,6 +350,9 @@ function testUpdateBrokenFetchURL() { ); $this->config('update_test.settings')->set('system_info', $system_info)->save(); + // Ensure that the update information is correct before testing. + $this->drupalGet('admin/reports/updates'); + $xml_mapping = array( 'drupal' => '0.0', 'aaa_update_test' => '1_0', diff --git a/core/modules/update/src/Tests/UpdateUploadTest.php b/core/modules/update/src/Tests/UpdateUploadTest.php index b9635e1..b4b6181 100644 --- a/core/modules/update/src/Tests/UpdateUploadTest.php +++ b/core/modules/update/src/Tests/UpdateUploadTest.php @@ -35,6 +35,9 @@ protected function setUp() { * Tests upload, extraction, and update of a module. */ public function testUploadModule() { + // Ensure that the update information is correct before testing. + $this->drupalGet('admin/reports/updates'); + // Images are not valid archives, so get one and try to install it. We // need an extra variable to store the result of drupalGetTestFiles() // since reset() takes an argument by reference and passing in a constant