aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/pathverificationtest.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-06-03 13:41:32 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-03 13:41:32 +0200
commit9ba5081d47e23a92198336ef4366c72c5a996a3b (patch)
treeed0d68500fe37e72ed2a7d6686c4bd85e5477324 /tests/lib/files/pathverificationtest.php
parent7de2940b423c4b1728558dc2b09cf04610ccb9ba (diff)
parentd3e3a84cae9c8926bcff810a0e16bb9dcd024888 (diff)
downloadnextcloud-server-9ba5081d47e23a92198336ef4366c72c5a996a3b.tar.gz
nextcloud-server-9ba5081d47e23a92198336ef4366c72c5a996a3b.zip
Merge pull request #16710 from owncloud/move-invoke-private-to-base-class
Move the helpful invokePrivate method to the TestCase class
Diffstat (limited to 'tests/lib/files/pathverificationtest.php')
-rw-r--r--tests/lib/files/pathverificationtest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/files/pathverificationtest.php b/tests/lib/files/pathverificationtest.php
index 65342c7799e..b59aceba7b1 100644
--- a/tests/lib/files/pathverificationtest.php
+++ b/tests/lib/files/pathverificationtest.php
@@ -94,7 +94,7 @@ class PathVerification extends \Test\TestCase {
$storage = new Local(['datadir' => '']);
$fileName = " 123{$fileName}456 ";
- \Test_Helper::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
+ self::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
}
public function providesInvalidCharsWindows() {
@@ -151,7 +151,7 @@ class PathVerification extends \Test\TestCase {
$storage = new Local(['datadir' => '']);
$fileName = " 123{$fileName}456 ";
- \Test_Helper::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
+ self::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
}
public function providesInvalidCharsPosix() {
@@ -200,7 +200,7 @@ class PathVerification extends \Test\TestCase {
public function testPathVerificationReservedNamesWindows($fileName) {
$storage = new Local(['datadir' => '']);
- \Test_Helper::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
+ self::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
}
public function providesReservedNamesWindows() {
@@ -236,8 +236,8 @@ class PathVerification extends \Test\TestCase {
public function testPathVerificationValidPaths($fileName) {
$storage = new Local(['datadir' => '']);
- \Test_Helper::invokePrivate($storage, 'verifyPosixPath', [$fileName]);
- \Test_Helper::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
+ self::invokePrivate($storage, 'verifyPosixPath', [$fileName]);
+ self::invokePrivate($storage, 'verifyWindowsPath', [$fileName]);
// nothing thrown
$this->assertTrue(true);
}