summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-02-06 14:51:43 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-06 15:59:31 +0200
commit65bc12960f77c172df271646c9c4458c1bbc5aaf (patch)
treeed3c9f3acc7d74337969fb6345003d9d989b27d8 /build/integration/features/bootstrap
parent6ee5469a038c46d116a16f280c9de6b19526c939 (diff)
downloadnextcloud-server-65bc12960f77c172df271646c9c4458c1bbc5aaf.tar.gz
nextcloud-server-65bc12960f77c172df271646c9c4458c1bbc5aaf.zip
Add integration tests for zip32/zip64 boundaries of number of files
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r--build/integration/features/bootstrap/Download.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/Download.php b/build/integration/features/bootstrap/Download.php
index 88ab03d4568..90e2bdf67ac 100644
--- a/build/integration/features/bootstrap/Download.php
+++ b/build/integration/features/bootstrap/Download.php
@@ -70,6 +70,18 @@ trait Download {
}
/**
+ * @Then the downloaded zip file is a zip64 file
+ */
+ public function theDownloadedZipFileIsAZip64File() {
+ // assertNotContains is not used to prevent the whole file from being
+ // printed in case of error.
+ PHPUnit_Framework_Assert::assertTrue(
+ strpos($this->downloadedFile, "\x50\x4B\x06\x06") !== false,
+ "File does not contain the zip64 end of central dir signature"
+ );
+ }
+
+ /**
* @Then the downloaded zip file contains a file named :fileName with the contents of :sourceFileName from :user data
*/
public function theDownloadedZipFileContainsAFileNamedWithTheContentsOfFromData($fileName, $sourceFileName, $user) {