mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
24 lines
546 B
PHP
24 lines
546 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace Test\Archive;
|
|
|
|
use OC\Archive\TAR;
|
|
use OCP\ITempManager;
|
|
use OCP\Server;
|
|
|
|
class TARTest extends TestBase {
|
|
protected function getExisting() {
|
|
$dir = \OC::$SERVERROOT . '/tests/data';
|
|
return new TAR($dir . '/data.tar.gz');
|
|
}
|
|
|
|
protected function getNew() {
|
|
return new TAR(Server::get(ITempManager::class)->getTemporaryFile('.tar.gz'));
|
|
}
|
|
}
|