diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-10-24 10:38:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 10:38:25 +0200 |
commit | ab91fa2660f15102b29254bc1c236101c6dcc6a3 (patch) | |
tree | 248ee35f937ee97a8f5af72935810c4bded21567 /tests | |
parent | 598c145430d813c05b3a980345462c45f801d733 (diff) | |
parent | 7998689bc9eb075813f6ae3ab3025f3932591e95 (diff) | |
download | nextcloud-server-ab91fa2660f15102b29254bc1c236101c6dcc6a3.tar.gz nextcloud-server-ab91fa2660f15102b29254bc1c236101c6dcc6a3.zip |
Merge pull request #1820 from nextcloud/4byte-filenames
Allow 4byte unicode filenames on supported platforms
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/PathVerificationTest.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/Files/PathVerificationTest.php b/tests/lib/Files/PathVerificationTest.php index 992734bdece..12285bb7acd 100644 --- a/tests/lib/Files/PathVerificationTest.php +++ b/tests/lib/Files/PathVerificationTest.php @@ -9,6 +9,7 @@ namespace Test\Files; use OC\Files\Storage\Local; use OC\Files\View; +use OCP\Files\InvalidPathException; /** * Class PathVerificationTest @@ -79,10 +80,15 @@ class PathVerificationTest extends \Test\TestCase { /** * @dataProvider providesAstralPlane - * @expectedException \OCP\Files\InvalidPathException - * @expectedExceptionMessage 4-byte characters are not supported in file names */ public function testPathVerificationAstralPlane($fileName) { + $connection = \OC::$server->getDatabaseConnection(); + + if (!$connection->supports4ByteText()) { + $this->expectException(InvalidPathException::class); + $this->expectExceptionMessage('4-byte characters are not supported in file names'); + } + $this->view->verifyPath('', $fileName); } |