Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-09-20 09:38:31 +0300
committerGitHub <noreply@github.com>2016-09-20 09:38:31 +0300
commit0b51c9ac4d36ef7440397a0497fb757478cf909c (patch)
tree5f258b1bdeff6bb697d38d664fd7511c2e47c288 /tests
parent8771eb3989e4a10c5506c2d15d0193e82c335b89 (diff)
[stable9] Fix mimetype detection inside hidden folders (#26138) (#26152)
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/type/detection.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/files/type/detection.php b/tests/lib/files/type/detection.php
index 5800f4eb8e3..7f3f10929fc 100644
--- a/tests/lib/files/type/detection.php
+++ b/tests/lib/files/type/detection.php
@@ -74,6 +74,8 @@ class DetectionTest extends \Test\TestCase {
$this->assertEquals('text/plain', $this->detection->detectPath('foo.txt'));
$this->assertEquals('image/png', $this->detection->detectPath('foo.png'));
$this->assertEquals('image/png', $this->detection->detectPath('foo.bar.png'));
+ $this->assertEquals('image/png', $this->detection->detectPath('.hidden/foo.png'));
+ $this->assertEquals('image/png', $this->detection->detectPath('test.jpg/foo.png'));
$this->assertEquals('application/octet-stream', $this->detection->detectPath('.png'));
$this->assertEquals('application/octet-stream', $this->detection->detectPath('foo'));
$this->assertEquals('application/octet-stream', $this->detection->detectPath(''));