diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-25 15:09:38 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-23 11:51:37 +0300 |
commit | 0bda4d54c5b77b4ea2865fbcc27f8c86d9f20513 (patch) | |
tree | 60aa5b31a7fc8127423118b3a6c6ae825606ba50 /tests | |
parent | 9fbd3fa6c14a59dc829a47cd334b9038777105b4 (diff) |
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() { |