dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ActorMigration: Remove possibility of read-both
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
logging
/
DatabaseLogEntryTest.php
diff --git
a/tests/phpunit/includes/logging/DatabaseLogEntryTest.php
b/tests/phpunit/includes/logging/DatabaseLogEntryTest.php
index
4af1742
..
e75b173
100644
(file)
--- 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 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,
*/
public function testNewFromId( $id,
array $selectFields,
array $row = null,
array $expectedFields = null,
- $migration
+ $commentMigration,
+ $actorMigration
) {
$this->setMwGlobals( [
) {
$this->setMwGlobals( [
- 'wgCommentTableSchemaMigrationStage' => $
m
igration,
- 'wgActorTableSchemaMigrationStage' => $
m
igration,
+ 'wgCommentTableSchemaMigrationStage' => $
commentM
igration,
+ 'wgActorTableSchemaMigrationStage' => $
actorM
igration,
] );
$row = $row ? (object)$row : null;
] );
$row = $row ? (object)$row : null;
@@
-132,6
+134,7
@@
class DatabaseLogEntryTest extends MediaWikiTestCase {
null,
null,
MIGRATION_OLD,
null,
null,
MIGRATION_OLD,
+ SCHEMA_COMPAT_OLD,
],
[
123,
],
[
123,
@@
-144,6
+147,7
@@
class DatabaseLogEntryTest extends MediaWikiTestCase {
],
[ 'type' => 'foobarize', 'comment' => 'test!' ],
MIGRATION_OLD,
],
[ 'type' => 'foobarize', 'comment' => 'test!' ],
MIGRATION_OLD,
+ SCHEMA_COMPAT_OLD,
],
[
567,
],
[
567,
@@
-156,6
+160,7
@@
class DatabaseLogEntryTest extends MediaWikiTestCase {
],
[ 'type' => 'foobarize', 'comment' => 'test!' ],
MIGRATION_NEW,
],
[ 'type' => 'foobarize', 'comment' => 'test!' ],
MIGRATION_NEW,
+ SCHEMA_COMPAT_NEW,
],
];
}
],
];
}