diff --git a/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php b/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php index 3719bcc64e5dac39e10c1e2d51585623c4f7dfab..605819c33820a17a04774887340627baa8a90961 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php @@ -77,7 +77,7 @@ public function uploadFileAndGetRemoteFilePath($path) { $tempFilename = tempnam('', 'WebDriverZip'); $archive = new \ZipArchive(); - $result = $archive->open($tempFilename, \ZipArchive::CREATE); + $result = $archive->open($tempFilename, \ZipArchive::OVERWRITE); if (!$result) { throw new DriverException('Zip archive could not be created. Error ' . $result); }