diff options
Diffstat (limited to 'tests/lib/repair/repaircollation.php')
-rw-r--r-- | tests/lib/repair/repaircollation.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/lib/repair/repaircollation.php b/tests/lib/repair/repaircollation.php index 8d609aeed38..4efa8ccc552 100644 --- a/tests/lib/repair/repaircollation.php +++ b/tests/lib/repair/repaircollation.php @@ -1,4 +1,6 @@ <?php +use OCP\Migration\IOutput; + /** * Copyright (c) 2014 Thomas Müller <deepdiver@owncloud.com> * This file is licensed under the Affero General Public License version 3 or @@ -70,7 +72,12 @@ class TestRepairCollation extends \Test\TestCase { $tables = $this->repair->getAllNonUTF8BinTables($this->connection); $this->assertGreaterThanOrEqual(1, count($tables)); - $this->repair->run(); + /** @var IOutput | \PHPUnit_Framework_MockObject_MockObject $outputMock */ + $outputMock = $this->getMockBuilder('\OCP\Migration\IOutput') + ->disableOriginalConstructor() + ->getMock(); + + $this->repair->run($outputMock); $tables = $this->repair->getAllNonUTF8BinTables($this->connection); $this->assertCount(0, $tables); |