diff options
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/files/pathverificationtest.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/lib/files/pathverificationtest.php b/tests/lib/files/pathverificationtest.php index fafc98cc3cc..1a802a48f57 100644 --- a/tests/lib/files/pathverificationtest.php +++ b/tests/lib/files/pathverificationtest.php @@ -78,8 +78,7 @@ class PathVerification extends \Test\TestCase { /** * @dataProvider providesInvalidCharsWindows - * @expectedException \OCP\Files\InvalidPathException - * @expectedExceptionMessage File name contains at least one invalid characters + * @expectedException \OCP\Files\InvalidCharacterInPathException */ public function testPathVerificationInvalidCharsWindows($fileName) { $storage = new Local(['datadir' => '']); @@ -136,8 +135,7 @@ class PathVerification extends \Test\TestCase { /** * @dataProvider providesInvalidCharsPosix - * @expectedException \OCP\Files\InvalidPathException - * @expectedExceptionMessage File name contains at least one invalid characters + * @expectedException \OCP\Files\InvalidCharacterInPathException */ public function testPathVerificationInvalidCharsPosix($fileName) { $storage = new Local(['datadir' => '']); @@ -187,8 +185,7 @@ class PathVerification extends \Test\TestCase { /** * @dataProvider providesReservedNamesWindows - * @expectedException \OCP\Files\InvalidPathException - * @expectedExceptionMessage File name is a reserved word + * @expectedException \OCP\Files\ReservedWordException */ public function testPathVerificationReservedNamesWindows($fileName) { $storage = new Local(['datadir' => '']); |