2 namespace MediaWiki\Tests\Storage
;
5 * Tests RevisionStore against the pre-MCR DB schema.
7 * @covers \MediaWiki\Storage\RevisionStore
14 class PreMcrRevisionStoreDbTest
extends RevisionStoreDbTestBase
{
16 use PreMcrSchemaOverride
;
18 public function provideGetArchiveQueryInfo() {
21 'tables' => [ 'archive' ],
22 'fields' => array_merge(
23 $this->getDefaultArchiveFields(),
25 'ar_comment_text' => 'ar_comment',
26 'ar_comment_data' => 'NULL',
27 'ar_comment_cid' => 'NULL',
28 'ar_user_text' => 'ar_user_text',
29 'ar_user' => 'ar_user',
40 public function provideGetQueryInfo() {
44 'tables' => [ 'revision' ],
45 'fields' => array_merge(
46 $this->getDefaultQueryFields(),
47 $this->getCommentQueryFields(),
48 $this->getActorQueryFields(),
49 $this->getContentHandlerQueryFields()
55 [ 'page', 'user', 'text' ],
57 'tables' => [ 'revision', 'page', 'user', 'text' ],
58 'fields' => array_merge(
59 $this->getDefaultQueryFields(),
60 $this->getCommentQueryFields(),
61 $this->getActorQueryFields(),
62 $this->getContentHandlerQueryFields(),
76 'page' => [ 'INNER JOIN', [ 'page_id = rev_page' ] ],
77 'user' => [ 'LEFT JOIN', [ 'rev_user != 0', 'user_id = rev_user' ] ],
78 'text' => [ 'INNER JOIN', [ 'rev_text_id=old_id' ] ],