summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-24 09:27:40 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-28 13:26:55 +0200
commit26c1e33d115cad3029c0663b7a388be0aff6417b (patch)
treef5f8ae4f82e738783f5b4689b957fb5a3df3e259 /apps/dav/tests
parentf9a64d3e1bf35c704fcf2ec9151b947213917a90 (diff)
downloadnextcloud-server-26c1e33d115cad3029c0663b7a388be0aff6417b.tar.gz
nextcloud-server-26c1e33d115cad3029c0663b7a388be0aff6417b.zip
Move repairstep to a custom command
People that have issues can run it manually Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php (renamed from apps/dav/tests/unit/Repair/RemoveInvalidSharesTest.php)9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/Repair/RemoveInvalidSharesTest.php b/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
index 14553740f38..2574e4d0aec 100644
--- a/apps/dav/tests/unit/Repair/RemoveInvalidSharesTest.php
+++ b/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
@@ -20,12 +20,14 @@
*/
-namespace OCA\DAV\Tests\Unit\Repair;
+namespace OCA\DAV\Tests\Unit\Command;
use OCA\DAV\Connector\Sabre\Principal;
-use OCA\DAV\Repair\RemoveInvalidShares;
+use OCA\DAV\Command\RemoveInvalidShares;
use OCP\Migration\IOutput;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
use Test\TestCase;
/**
@@ -57,8 +59,7 @@ class RemoveInvalidSharesTest extends TestCase {
$output = $this->createMock(IOutput::class);
$repair = new RemoveInvalidShares($db, $principal);
- $this->assertEquals("Remove invalid calendar and addressbook shares", $repair->getName());
- $repair->run($output);
+ $this->invokePrivate($repair, 'run', [$this->createMock(InputInterface::class), $this->createMock(OutputInterface::class)]);
$query = $db->getQueryBuilder();
$result = $query->select('*')->from('dav_shares')