nextcloud/tests/lib/Archive/ZIPTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
509 B
PHP
Raw Normal View History

<?php
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
2016-05-18 12:46:03 -04:00
namespace Test\Archive;
use OC\Archive\ZIP;
2016-05-18 12:46:03 -04:00
class ZIPTest extends TestBase {
2012-10-05 16:24:36 -04:00
protected function getExisting() {
2016-05-18 12:46:03 -04:00
$dir = \OC::$SERVERROOT . '/tests/data';
return new ZIP($dir . '/data.zip');
2012-10-05 16:24:36 -04:00
}
2012-10-05 16:24:36 -04:00
protected function getNew() {
return new ZIP(\OC::$server->getTempManager()->getTempBaseDir().'/newArchive.zip');
}
}