diff options
Diffstat (limited to 'modules/update/update.test')
-rw-r--r-- | modules/update/update.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/update/update.test b/modules/update/update.test index ebc0d2cb6..840371552 100644 --- a/modules/update/update.test +++ b/modules/update/update.test @@ -592,8 +592,12 @@ class UpdateTestUploadCase extends UpdateTestHelper { * Tests upload and extraction of a module. */ public function testUploadModule() { - // Images are not valid archives, so get one and try to install it. - $invalidArchiveFile = reset($this->drupalGetTestFiles('image')); + // 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 + // emits a notice in strict mode. + $imageTestFiles = $this->drupalGetTestFiles('image'); + $invalidArchiveFile = reset($imageTestFiles); $edit = array( 'files[project_upload]' => $invalidArchiveFile->uri, ); |