X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flogging%2FDatabaseLogEntryTest.php;h=e75b1739d234d50f86efb2c7eda192eb22f0736e;hb=993baa3493f17161847ce4545927d42e7861aae9;hp=4af1742e1aae55c0616ef791a3d7f72949e434d1;hpb=967a96e7fa5910f8fc451590decb381dbfb481ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/logging/DatabaseLogEntryTest.php b/tests/phpunit/includes/logging/DatabaseLogEntryTest.php index 4af1742e1a..e75b1739d2 100644 --- a/tests/phpunit/includes/logging/DatabaseLogEntryTest.php +++ b/tests/phpunit/includes/logging/DatabaseLogEntryTest.php @@ -29,17 +29,19 @@ class DatabaseLogEntryTest extends MediaWikiTestCase { * @param array $selectFields * @param string[]|null $row * @param string[]|null $expectedFields - * @param string $migration + * @param int $commentMigration + * @param int $actorMigration */ public function testNewFromId( $id, array $selectFields, array $row = null, array $expectedFields = null, - $migration + $commentMigration, + $actorMigration ) { $this->setMwGlobals( [ - 'wgCommentTableSchemaMigrationStage' => $migration, - 'wgActorTableSchemaMigrationStage' => $migration, + 'wgCommentTableSchemaMigrationStage' => $commentMigration, + 'wgActorTableSchemaMigrationStage' => $actorMigration, ] ); $row = $row ? (object)$row : null; @@ -132,6 +134,7 @@ class DatabaseLogEntryTest extends MediaWikiTestCase { null, null, MIGRATION_OLD, + SCHEMA_COMPAT_OLD, ], [ 123, @@ -144,6 +147,7 @@ class DatabaseLogEntryTest extends MediaWikiTestCase { ], [ 'type' => 'foobarize', 'comment' => 'test!' ], MIGRATION_OLD, + SCHEMA_COMPAT_OLD, ], [ 567, @@ -156,6 +160,7 @@ class DatabaseLogEntryTest extends MediaWikiTestCase { ], [ 'type' => 'foobarize', 'comment' => 'test!' ], MIGRATION_NEW, + SCHEMA_COMPAT_NEW, ], ]; }