summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-27 18:52:48 +0200
committerGitHub <noreply@github.com>2016-09-27 18:52:48 +0200
commitc4d263199c992e890f5b413c26645c1156e0cfe6 (patch)
tree2da78188e6d8f7e13aadc0e24e29a54c0ae72a55 /tests
parent2f488ce3730d3dc8aa0df7b6e57c46478fcf1288 (diff)
parent9b4de310bdfc3eeaafd236124cb17ee58d11c852 (diff)
downloadnextcloud-server-c4d263199c992e890f5b413c26645c1156e0cfe6.tar.gz
nextcloud-server-c4d263199c992e890f5b413c26645c1156e0cfe6.zip
Merge pull request #1521 from nextcloud/fix-mimetypedetect-hiddenfolder
Fix mimetype detection inside hidden folders (#26138)
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Type/DetectionTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/Files/Type/DetectionTest.php b/tests/lib/Files/Type/DetectionTest.php
index 11267ee2e7d..87e0f94e3e2 100644
--- a/tests/lib/Files/Type/DetectionTest.php
+++ b/tests/lib/Files/Type/DetectionTest.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(''));