diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-06-03 13:41:32 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-06-03 13:41:32 +0200 |
commit | 9ba5081d47e23a92198336ef4366c72c5a996a3b (patch) | |
tree | ed0d68500fe37e72ed2a7d6686c4bd85e5477324 /tests/lib/files/pathverificationtest.php | |
parent | 7de2940b423c4b1728558dc2b09cf04610ccb9ba (diff) | |
parent | d3e3a84cae9c8926bcff810a0e16bb9dcd024888 (diff) | |
download | nextcloud-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.php | 10 |
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); } |