diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-25 14:09:38 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-23 10:51:37 +0200 |
commit | 0bda4d54c5b77b4ea2865fbcc27f8c86d9f20513 (patch) | |
tree | 60aa5b31a7fc8127423118b3a6c6ae825606ba50 /tests | |
parent | 9fbd3fa6c14a59dc829a47cd334b9038777105b4 (diff) | |
download | nextcloud-server-0bda4d54c5b77b4ea2865fbcc27f8c86d9f20513.tar.gz nextcloud-server-0bda4d54c5b77b4ea2865fbcc27f8c86d9f20513.zip |
Repair mime types only when upgrading from OC 8.0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/repair/repairmimetypes.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/lib/repair/repairmimetypes.php b/tests/lib/repair/repairmimetypes.php index da36e7de58a..3c100b808cf 100644 --- a/tests/lib/repair/repairmimetypes.php +++ b/tests/lib/repair/repairmimetypes.php @@ -26,8 +26,17 @@ class RepairMimeTypes extends \Test\TestCase { $this->savedMimetypeLoader = \OC::$server->getMimeTypeLoader(); $this->mimetypeLoader = \OC::$server->getMimeTypeLoader(); + $config = $this->getMockBuilder('OCP\IConfig') + ->disableOriginalConstructor() + ->getMock(); + $config->expects($this->any()) + ->method('getSystemValue') + ->with('version') + ->will($this->returnValue('8.0.0.0')); + $this->storage = new \OC\Files\Storage\Temporary([]); - $this->repair = new \OC\Repair\RepairMimeTypes(); + + $this->repair = new \OC\Repair\RepairMimeTypes($config); } protected function tearDown() { |