diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-02 21:59:19 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-02 21:59:19 +0000 |
commit | 8f5506f89cafca719f2fe63b336e6b6185e28d1a (patch) | |
tree | 6beec6a51f2c94af5bf5fdf11fe693d79c1bdb2b /modules/update | |
parent | 514ccb85e6138588bebc96bb165711582658423c (diff) | |
download | brdo-8f5506f89cafca719f2fe63b336e6b6185e28d1a.tar.gz brdo-8f5506f89cafca719f2fe63b336e6b6185e28d1a.tar.bz2 |
#1005934 by rfw, dww: Fixed UpdateTestUploadCase->testUploadModule() raises an exception during testing with E_STRICT
Diffstat (limited to 'modules/update')
-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, ); |