diff options
author | Joas Schilling <coding@schilljs.com> | 2017-11-01 11:04:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 11:04:15 +0100 |
commit | 3e0789aa94702ea2f331b9023da52862915023d6 (patch) | |
tree | c1c3821b2ddce9144f43f5425ea504d7f7a48c21 /tests | |
parent | defc4bf6a844a72068c98b74f355080325e433cb (diff) | |
parent | 405bbc1c6195f7735d920451fe18476ec4bd0054 (diff) | |
download | nextcloud-server-3e0789aa94702ea2f331b9023da52862915023d6.tar.gz nextcloud-server-3e0789aa94702ea2f331b9023da52862915023d6.zip |
Merge pull request #6958 from nextcloud/improved-mimetype-detection-for-object-storage
Improve mimetype detection for object storages
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Type/DetectionTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/Files/Type/DetectionTest.php b/tests/lib/Files/Type/DetectionTest.php index 295b9bf9fac..1d01a96fcc0 100644 --- a/tests/lib/Files/Type/DetectionTest.php +++ b/tests/lib/Files/Type/DetectionTest.php @@ -84,6 +84,8 @@ class DetectionTest extends \Test\TestCase { $this->assertEquals('application/octet-stream', $this->detection->detectPath('..hidden')); $this->assertEquals('application/octet-stream', $this->detection->detectPath('foo')); $this->assertEquals('application/octet-stream', $this->detection->detectPath('')); + $this->assertEquals('image/png', $this->detection->detectPath('foo.png.ocTransferId123456789.part')); + $this->assertEquals('image/png', $this->detection->detectPath('foo.png.v1234567890')); } public function testDetectString() { |