summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-18 10:15:33 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-18 10:15:33 +0100
commit9e97bef935775b026410e54f5f1c549544186036 (patch)
treee11743ecb11d7375d1d1bae240a5671648d4fb12 /tests
parent551e553bf4f6cda7c559429cc6f0c40d3eb15d0b (diff)
parentecdf88e41b898889fe8e05bb9c05415dd6b03a95 (diff)
downloadnextcloud-server-9e97bef935775b026410e54f5f1c549544186036.tar.gz
nextcloud-server-9e97bef935775b026410e54f5f1c549544186036.zip
Merge pull request #21268 from owncloud/cleanup-OC_Helper-getFileNameMimeType
Use proper public API for OC_Helper::getFileNameMimeType
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/helper.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/lib/helper.php b/tests/lib/helper.php
index 469ffecc773..51f7342f456 100644
--- a/tests/lib/helper.php
+++ b/tests/lib/helper.php
@@ -83,15 +83,6 @@ class Test_Helper extends \Test\TestCase {
$this->assertEquals($result, $expected);
}
- function testGetFileNameMimeType() {
- $this->assertEquals('text/plain', OC_Helper::getFileNameMimeType('foo.txt'));
- $this->assertEquals('image/png', OC_Helper::getFileNameMimeType('foo.png'));
- $this->assertEquals('image/png', OC_Helper::getFileNameMimeType('foo.bar.png'));
- $this->assertEquals('application/octet-stream', OC_Helper::getFileNameMimeType('.png'));
- $this->assertEquals('application/octet-stream', OC_Helper::getFileNameMimeType('foo'));
- $this->assertEquals('application/octet-stream', OC_Helper::getFileNameMimeType(''));
- }
-
function testGetStringMimeType() {
if (\OC_Util::runningOnWindows()) {
$this->markTestSkipped('[Windows] Strings have mimetype application/octet-stream on Windows');