Avoid Deprecation warning from Zip tests on PHP 8.1

It is not allowed anymore to open an empty file as a new zip archive.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2021-12-16 09:58:40 +01:00
parent e053feb5db
commit ec4fff20e8
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 1 additions and 1 deletions

View File

@ -17,6 +17,6 @@ class ZIPTest extends TestBase {
}
protected function getNew() {
return new ZIP(\OC::$server->getTempManager()->getTemporaryFile('.zip'));
return new ZIP(\OC::$server->getTempManager()->getTempBaseDir().'/newArchive.zip');
}
}