diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/DB/MDB2SchemaReaderTest.php | 2 | ||||
-rw-r--r-- | tests/lib/DB/SchemaDiffTest.php | 4 | ||||
-rw-r--r-- | tests/lib/Repair/RepairCollationTest.php | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/tests/lib/DB/MDB2SchemaReaderTest.php b/tests/lib/DB/MDB2SchemaReaderTest.php index dcec6ae593e..3daf0dd7589 100644 --- a/tests/lib/DB/MDB2SchemaReaderTest.php +++ b/tests/lib/DB/MDB2SchemaReaderTest.php @@ -47,7 +47,7 @@ class MDB2SchemaReaderTest extends TestCase { public function testRead() { $reader = new MDB2SchemaReader($this->getConfig(), new MySqlPlatform()); - $schema = $reader->loadSchemaFromFile(__DIR__ . '/testschema.xml'); + $schema = $reader->loadSchemaFromFile(__DIR__ . '/testschema.xml', new Schema()); $this->assertCount(1, $schema->getTables()); $table = $schema->getTable('test_table'); diff --git a/tests/lib/DB/SchemaDiffTest.php b/tests/lib/DB/SchemaDiffTest.php index 88c9abeb431..f74d800bfec 100644 --- a/tests/lib/DB/SchemaDiffTest.php +++ b/tests/lib/DB/SchemaDiffTest.php @@ -21,6 +21,7 @@ namespace Test\DB; +use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\SchemaDiff; use OC\DB\MDB2SchemaManager; use OC\DB\MDB2SchemaReader; @@ -79,7 +80,8 @@ class SchemaDiffTest extends TestCase { $this->manager->createDbFromStructure($schemaFile); $schemaReader = new MDB2SchemaReader($this->config, $this->connection->getDatabasePlatform()); - $endSchema = $schemaReader->loadSchemaFromFile($schemaFile); + $toSchema = new Schema([], [], $this->connection->getSchemaManager()->createSchemaConfig()); + $endSchema = $schemaReader->loadSchemaFromFile($schemaFile, $toSchema); // get the diff /** @var SchemaDiff $diff */ diff --git a/tests/lib/Repair/RepairCollationTest.php b/tests/lib/Repair/RepairCollationTest.php index 7ff069d37be..d84f689cc52 100644 --- a/tests/lib/Repair/RepairCollationTest.php +++ b/tests/lib/Repair/RepairCollationTest.php @@ -18,10 +18,10 @@ use Test\TestCase; class TestCollationRepair extends Collation { /** - * @param \Doctrine\DBAL\Connection $connection + * @param IDBConnection $connection * @return string[] */ - public function getAllNonUTF8BinTables($connection) { + public function getAllNonUTF8BinTables(IDBConnection $connection) { return parent::getAllNonUTF8BinTables($connection); } } |