diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-28 13:56:36 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-28 13:56:36 +0300 |
commit | d68079f93210f8fe0b5327e686497db97fde6a3e (patch) | |
tree | e42b7e0913eb8432aec15538a42feabbbb52a648 /tests | |
parent | 72024ad201dd9f232eee5ab57d8e08ccecb7179a (diff) | |
parent | 0bda4d54c5b77b4ea2865fbcc27f8c86d9f20513 (diff) |
Merge pull request #18548 from owncloud/repair-mimetype-limitversion
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() { |