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
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-06-29 15:45:08 +0300
committerRobin Appelman <robin@icewind.nl>2017-06-29 15:45:08 +0300
commit601362e164632a1b68e896bd5359d0b7308eed4f (patch)
tree0480f352ab4cbf72e0c1cbeb742990996ca4ad7c /tests/lib/Repair
parent846e62c225070cbe9f8a0c8b14ec2a1f87ba1ca1 (diff)
adjust to moved repair step
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Repair')
-rw-r--r--tests/lib/Repair/RepairInvalidPathsTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/Repair/RepairInvalidPathsTest.php b/tests/lib/Repair/RepairInvalidPathsTest.php
index c6c1bbb19bc..b18758585c1 100644
--- a/tests/lib/Repair/RepairInvalidPathsTest.php
+++ b/tests/lib/Repair/RepairInvalidPathsTest.php
@@ -23,7 +23,8 @@ namespace Test\Repair;
use OC\Files\Cache\Cache;
use OC\Files\Storage\Temporary;
-use OC\Repair\RepairInvalidPaths;
+use OC\Repair\NC13\RepairInvalidPaths;
+use OCP\IConfig;
use OCP\Migration\IOutput;
use Test\TestCase;
@@ -43,7 +44,12 @@ class RepairInvalidPathsTest extends TestCase {
$this->storage = new Temporary();
$this->cache = $this->storage->getCache();
- $this->repair = new RepairInvalidPaths(\OC::$server->getDatabaseConnection());
+ $config = $this->createMock(IConfig::class);
+ $config->expects($this->any())
+ ->method('getSystemValue')
+ ->with('version', '0.0.0')
+ ->willReturn('12.0.0.0');
+ $this->repair = new RepairInvalidPaths(\OC::$server->getDatabaseConnection(), $config);
}
protected function tearDown() {