aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/MigratorTest.php
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-02-18 14:05:54 +0100
committerGitHub <noreply@github.com>2021-02-18 14:05:54 +0100
commit5026d2cca10fa65be68367002eff147d7dc71077 (patch)
treed4d7119b0b8f547aebcc857c5297fc52ccc5a4b3 /tests/lib/DB/MigratorTest.php
parentbbb39cf3deb350738a28b5f5bdf40572f1406897 (diff)
parenteb502c02ff7693bb36318d857985f79e7bac370c (diff)
downloadnextcloud-server-5026d2cca10fa65be68367002eff147d7dc71077.tar.gz
nextcloud-server-5026d2cca10fa65be68367002eff147d7dc71077.zip
Merge pull request #25086 from nextcloud/dependabot/composer/nextcloud/coding-standard-0.5.0
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Diffstat (limited to 'tests/lib/DB/MigratorTest.php')
-rw-r--r--tests/lib/DB/MigratorTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/DB/MigratorTest.php b/tests/lib/DB/MigratorTest.php
index 6f3ebbb2b0c..6b758534897 100644
--- a/tests/lib/DB/MigratorTest.php
+++ b/tests/lib/DB/MigratorTest.php
@@ -138,7 +138,7 @@ class MigratorTest extends \Test\TestCase {
if ($this->isSQLite()) {
$this->markTestSkipped('sqlite does not throw errors when creating a new key on existing data');
}
- list($startSchema, $endSchema) = $this->getDuplicateKeySchemas();
+ [$startSchema, $endSchema] = $this->getDuplicateKeySchemas();
$migrator = $this->manager->getMigrator();
$migrator->migrate($startSchema);
@@ -157,7 +157,7 @@ class MigratorTest extends \Test\TestCase {
}
public function testChangeToString() {
- list($startSchema, $endSchema) = $this->getChangedTypeSchema('integer', 'string');
+ [$startSchema, $endSchema] = $this->getChangedTypeSchema('integer', 'string');
$migrator = $this->manager->getMigrator();
$migrator->migrate($startSchema);
$schema = new SchemaWrapper($this->connection);
@@ -184,7 +184,7 @@ class MigratorTest extends \Test\TestCase {
}
public function testUpgrade() {
- list($startSchema, $endSchema) = $this->getDuplicateKeySchemas();
+ [$startSchema, $endSchema] = $this->getDuplicateKeySchemas();
$migrator = $this->manager->getMigrator();
$migrator->migrate($startSchema);
@@ -202,7 +202,7 @@ class MigratorTest extends \Test\TestCase {
$this->config->setSystemValue('dbtableprefix', 'ownc_');
$this->tableName = strtolower($this->getUniqueID($this->config->getSystemValue('dbtableprefix') . 'test_'));
- list($startSchema, $endSchema) = $this->getDuplicateKeySchemas();
+ [$startSchema, $endSchema] = $this->getDuplicateKeySchemas();
$migrator = $this->manager->getMigrator();
$migrator->migrate($startSchema);
@@ -217,7 +217,7 @@ class MigratorTest extends \Test\TestCase {
}
public function testInsertAfterUpgrade() {
- list($startSchema, $endSchema) = $this->getDuplicateKeySchemas();
+ [$startSchema, $endSchema] = $this->getDuplicateKeySchemas();
$migrator = $this->manager->getMigrator();
$migrator->migrate($startSchema);