aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/PathVerificationTest.php
diff options
context:
space:
mode:
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 f256a954f9f..fcbe0a6957f 100644
--- a/tests/lib/Files/PathVerificationTest.php
+++ b/tests/lib/Files/PathVerificationTest.php
@@ -30,7 +30,7 @@ class PathVerificationTest extends \Test\TestCase {
}
- public function testPathVerificationFileNameTooLong() {
+ public function testPathVerificationFileNameTooLong(): void {
$this->expectException(\OCP\Files\InvalidPathException::class);
$this->expectExceptionMessage('Filename is too long');
@@ -42,7 +42,7 @@ class PathVerificationTest extends \Test\TestCase {
/**
* @dataProvider providesEmptyFiles
*/
- public function testPathVerificationEmptyFileName($fileName) {
+ public function testPathVerificationEmptyFileName($fileName): void {
$this->expectException(\OCP\Files\InvalidPathException::class);
$this->expectExceptionMessage('Empty filename is not allowed');
@@ -59,7 +59,7 @@ class PathVerificationTest extends \Test\TestCase {
/**
* @dataProvider providesDotFiles
*/
- public function testPathVerificationDotFiles($fileName) {
+ public function testPathVerificationDotFiles($fileName): void {
$this->expectException(\OCP\Files\InvalidPathException::class);
$this->expectExceptionMessage('Dot files are not allowed');
@@ -82,7 +82,7 @@ class PathVerificationTest extends \Test\TestCase {
/**
* @dataProvider providesAstralPlane
*/
- public function testPathVerificationAstralPlane($fileName) {
+ public function testPathVerificationAstralPlane($fileName): void {
$connection = \OC::$server->getDatabaseConnection();
if (!$connection->supports4ByteText()) {
@@ -109,7 +109,7 @@ class PathVerificationTest extends \Test\TestCase {
/**
* @dataProvider providesValidPosixPaths
*/
- public function testPathVerificationValidPaths($fileName) {
+ public function testPathVerificationValidPaths($fileName): void {
$storage = new Local(['datadir' => '']);
self::invokePrivate($storage, 'verifyPosixPath', [$fileName]);