Browse Source
test: Make Archive test order independent
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/52851/head
Joas Schilling
6 months ago
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
1 changed files with
5 additions and
1 deletions
-
tests/lib/Archive/ZIPTest.php
|
|
|
@ -16,6 +16,10 @@ class ZIPTest extends TestBase { |
|
|
|
} |
|
|
|
|
|
|
|
protected function getNew() { |
|
|
|
return new ZIP(\OC::$server->getTempManager()->getTempBaseDir() . '/newArchive.zip'); |
|
|
|
$newZip = \OC::$server->getTempManager()->getTempBaseDir() . '/newArchive.zip'; |
|
|
|
if (file_exists($newZip)) { |
|
|
|
unlink($newZip); |
|
|
|
} |
|
|
|
return new ZIP($newZip); |
|
|
|
} |
|
|
|
} |