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 <thomas.mueller@tmit.eu>2015-12-18 17:23:05 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-18 17:23:05 +0300
commit36cc0528e3cfd29a4bc7e4b72d6f2b243845a7cc (patch)
tree4638753c2d4698c2677231834b28aabc5dd28309 /tests
parenta743047e8228fb4973d99e0101dec5e6c39f81b9 (diff)
parentb460bde7c6c3c70fc0010133c00f1e76a952fa48 (diff)
Merge pull request #21288 from owncloud/deprecated_helper_mimetypes
Remove deprecated OC_Helper mimetype functions
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/helper.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/lib/helper.php b/tests/lib/helper.php
index dbc89b716d0..c2620896157 100644
--- a/tests/lib/helper.php
+++ b/tests/lib/helper.php
@@ -71,28 +71,6 @@ class Test_Helper extends \Test\TestCase {
];
}
- function testGetSecureMimeType() {
- $dir=OC::$SERVERROOT.'/tests/data';
-
- $result = OC_Helper::getSecureMimeType('image/svg+xml');
- $expected = 'text/plain';
- $this->assertEquals($result, $expected);
-
- $result = OC_Helper::getSecureMimeType('image/png');
- $expected = 'image/png';
- $this->assertEquals($result, $expected);
- }
-
- function testGetStringMimeType() {
- if (\OC_Util::runningOnWindows()) {
- $this->markTestSkipped('[Windows] Strings have mimetype application/octet-stream on Windows');
- }
-
- $result = OC_Helper::getStringMimeType("/data/data.tar.gz");
- $expected = 'text/plain; charset=us-ascii';
- $this->assertEquals($result, $expected);
- }
-
function testIsSubDirectory() {
$result = OC_Helper::isSubDirectory("./data/", "/anotherDirectory/");
$this->assertFalse($result);