|
|
|
|
@ -11,8 +11,8 @@ namespace Test\Repair; |
|
|
|
|
use Doctrine\DBAL\Platforms\MySqlPlatform; |
|
|
|
|
use OC\Repair\Collation; |
|
|
|
|
use OCP\IDBConnection; |
|
|
|
|
use OCP\ILogger; |
|
|
|
|
use OCP\Migration\IOutput; |
|
|
|
|
use Psr\Log\LoggerInterface; |
|
|
|
|
use Test\TestCase; |
|
|
|
|
|
|
|
|
|
class TestCollationRepair extends Collation { |
|
|
|
|
@ -54,14 +54,14 @@ class RepairCollationTest extends TestCase { |
|
|
|
|
*/ |
|
|
|
|
private $config; |
|
|
|
|
|
|
|
|
|
/** @var ILogger */ |
|
|
|
|
/** @var LoggerInterface */ |
|
|
|
|
private $logger; |
|
|
|
|
|
|
|
|
|
protected function setUp(): void { |
|
|
|
|
parent::setUp(); |
|
|
|
|
|
|
|
|
|
$this->connection = \OC::$server->get(IDBConnection::class); |
|
|
|
|
$this->logger = $this->createMock(ILogger::class); |
|
|
|
|
$this->logger = $this->createMock(LoggerInterface::class); |
|
|
|
|
$this->config = \OC::$server->getConfig(); |
|
|
|
|
if (!$this->connection->getDatabasePlatform() instanceof MySqlPlatform) { |
|
|
|
|
$this->markTestSkipped("Test only relevant on MySql"); |
|
|
|
|
|