aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/LargeFileHelperGetFileSizeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/LargeFileHelperGetFileSizeTest.php')
-rw-r--r--tests/lib/LargeFileHelperGetFileSizeTest.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/lib/LargeFileHelperGetFileSizeTest.php b/tests/lib/LargeFileHelperGetFileSizeTest.php
index 7f6604bdb35..eb79994ea94 100644
--- a/tests/lib/LargeFileHelperGetFileSizeTest.php
+++ b/tests/lib/LargeFileHelperGetFileSizeTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
@@ -8,6 +9,9 @@
namespace Test;
use bantu\IniGetWrapper\IniGetWrapper;
+use OC\LargeFileHelper;
+use OCP\Server;
+use OCP\Util;
/**
* Tests whether LargeFileHelper is able to determine file size at all.
@@ -23,7 +27,7 @@ class LargeFileHelperGetFileSizeTest extends TestCase {
protected function setUp(): void {
parent::setUp();
- $this->helper = new \OC\LargeFileHelper();
+ $this->helper = new LargeFileHelper();
}
public static function dataFileNameProvider(): array {
@@ -44,7 +48,7 @@ class LargeFileHelperGetFileSizeTest extends TestCase {
'The PHP curl extension is required for this test.'
);
}
- if (\OC::$server->get(IniGetWrapper::class)->getString('open_basedir') !== '') {
+ if (Server::get(IniGetWrapper::class)->getString('open_basedir') !== '') {
$this->markTestSkipped(
'The PHP curl extension does not work with the file:// protocol when open_basedir is enabled.'
);
@@ -62,7 +66,7 @@ class LargeFileHelperGetFileSizeTest extends TestCase {
if (escapeshellarg('strängé') !== '\'strängé\'') {
$this->markTestSkipped('Your escapeshell args removes accents');
}
- if (!\OCP\Util::isFunctionEnabled('exec')) {
+ if (!Util::isFunctionEnabled('exec')) {
$this->markTestSkipped(
'The exec() function needs to be enabled for this test.'
);