summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-12 15:08:19 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-12 15:08:19 +0200
commit64a8d016946560182f107e48b9fcc81e517b6945 (patch)
tree59b9a34791fa1da98aff62ebb8c718ae1ad03c7f /tests/lib
parenteb445103e9caaaba41e30b4e53379aa6030ac65d (diff)
parent8098c06e708ba24a5beccd7a85572c7990c9a3f5 (diff)
downloadnextcloud-server-64a8d016946560182f107e48b9fcc81e517b6945.tar.gz
nextcloud-server-64a8d016946560182f107e48b9fcc81e517b6945.zip
Merge pull request #19683 from owncloud/repair-donotrepairfoldermimetypes
Do not update mime types for folders with extension
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/repair/repairmimetypes.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/repair/repairmimetypes.php b/tests/lib/repair/repairmimetypes.php
index 0288a476ede..a0697776e73 100644
--- a/tests/lib/repair/repairmimetypes.php
+++ b/tests/lib/repair/repairmimetypes.php
@@ -514,5 +514,22 @@ class RepairMimeTypes extends \Test\TestCase {
$this->renameMimeTypes($currentMimeTypes, $fixedMimeTypes);
}
+
+ /**
+ * Test that mime type renaming does not affect folders
+ */
+ public function testDoNotChangeFolderMimeType() {
+ $currentMimeTypes = [
+ ['test.conf', 'httpd/unix-directory'],
+ ['test.cnf', 'httpd/unix-directory'],
+ ];
+
+ $fixedMimeTypes = [
+ ['test.conf', 'httpd/unix-directory'],
+ ['test.cnf', 'httpd/unix-directory'],
+ ];
+
+ $this->renameMimeTypes($currentMimeTypes, $fixedMimeTypes);
+ }
}