aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/repair/repairsqliteautoincrement.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/repair/repairsqliteautoincrement.php')
-rw-r--r--tests/lib/repair/repairsqliteautoincrement.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/lib/repair/repairsqliteautoincrement.php b/tests/lib/repair/repairsqliteautoincrement.php
index 6f0c2cb8d28..581857ebfc9 100644
--- a/tests/lib/repair/repairsqliteautoincrement.php
+++ b/tests/lib/repair/repairsqliteautoincrement.php
@@ -7,6 +7,7 @@
*/
namespace Test\Repair;
+use OCP\Migration\IOutput;
/**
* Tests for fixing the SQLite id recycling
@@ -76,7 +77,12 @@ class RepairSqliteAutoincrement extends \Test\TestCase {
public function testConvertIdColumn() {
$this->assertFalse($this->checkAutoincrement());
- $this->repair->run();
+ /** @var IOutput | \PHPUnit_Framework_MockObject_MockObject $outputMock */
+ $outputMock = $this->getMockBuilder('\OCP\Migration\IOutput')
+ ->disableOriginalConstructor()
+ ->getMock();
+
+ $this->repair->run($outputMock);
$this->assertTrue($this->checkAutoincrement());
}