diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-11-26 10:18:32 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-11-26 10:18:32 +0100 |
commit | 9318606fafce10740c30be3662514d5a7a139ce5 (patch) | |
tree | d3c127c197028ed8b7143fed0c614ac7176661fe /tests | |
parent | dd18ea611bd0e66969df22aedddc98cddbba4984 (diff) | |
download | nextcloud-server-9318606fafce10740c30be3662514d5a7a139ce5.tar.gz nextcloud-server-9318606fafce10740c30be3662514d5a7a139ce5.zip |
Remove last occurences of OC_Helper::getMimeType()
* ref #4774
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/helper.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/lib/helper.php b/tests/lib/helper.php index ca3e0e46d82..af550df309c 100644 --- a/tests/lib/helper.php +++ b/tests/lib/helper.php @@ -71,29 +71,6 @@ class Test_Helper extends \Test\TestCase { ]; } - function testGetMimeType() { - $dir=OC::$SERVERROOT.'/tests/data'; - $result = OC_Helper::getMimeType($dir."/"); - $expected = 'httpd/unix-directory'; - $this->assertEquals($result, $expected); - - $result = OC_Helper::getMimeType($dir."/data.tar.gz"); - $expected = 'application/x-gzip'; - $this->assertEquals($result, $expected); - - $result = OC_Helper::getMimeType($dir."/data.zip"); - $expected = 'application/zip'; - $this->assertEquals($result, $expected); - - $result = OC_Helper::getMimeType($dir."/desktopapp.svg"); - $expected = 'image/svg+xml'; - $this->assertEquals($result, $expected); - - $result = OC_Helper::getMimeType($dir."/desktopapp.png"); - $expected = 'image/png'; - $this->assertEquals($result, $expected); - } - function testGetSecureMimeType() { $dir=OC::$SERVERROOT.'/tests/data'; |