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
Join slot and content tables when dumping XML
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
Revision
/
McrReadNewRevisionStoreDbTest.php
diff --git
a/tests/phpunit/includes/Revision/McrReadNewRevisionStoreDbTest.php
b/tests/phpunit/includes/Revision/McrReadNewRevisionStoreDbTest.php
index
3efd372
..
43a698a
100644
(file)
--- a/
tests/phpunit/includes/Revision/McrReadNewRevisionStoreDbTest.php
+++ b/
tests/phpunit/includes/Revision/McrReadNewRevisionStoreDbTest.php
@@
-1,4
+1,5
@@
<?php
<?php
+
namespace MediaWiki\Tests\Revision;
use CommentStoreComment;
namespace MediaWiki\Tests\Revision;
use CommentStoreComment;
@@
-55,7
+56,7
@@
class McrReadNewRevisionStoreDbTest extends RevisionStoreDbTestBase {
[ 'rev_id' => $rev->getId(), 'rev_text_id > 0' ],
[ [ 1 ] ],
[],
[ 'rev_id' => $rev->getId(), 'rev_text_id > 0' ],
[ [ 1 ] ],
[],
- [ 'text' => [ '
INNER
JOIN', [ 'rev_text_id = old_id' ] ] ]
+ [ 'text' => [ 'JOIN', [ 'rev_text_id = old_id' ] ] ]
);
parent::assertRevisionExistsInDatabase( $rev );
);
parent::assertRevisionExistsInDatabase( $rev );
@@
-143,4
+144,14
@@
class McrReadNewRevisionStoreDbTest extends RevisionStoreDbTestBase {
];
}
];
}
+ /**
+ * Conditions to use together with getSlotsQueryInfo() when selecting slot rows for a given
+ * revision.
+ *
+ * @return array
+ */
+ protected function getSlotRevisionConditions( $revId ) {
+ return [ 'slot_revision_id' => $revId ];
+ }
+
}
}