Remove hard deprecation of PasswordPolicyChecks::checkPopularPasswordBlacklist
[lhc/web/wiklou.git] / tests / phpunit / includes / RevisionMcrWriteBothDbTest.php
1 <?php
2
3 use MediaWiki\Tests\Revision\McrWriteBothSchemaOverride;
4
5 /**
6 * Tests Revision against the intermediate MCR DB schema for use during schema migration.
7 *
8 * @covers Revision
9 *
10 * @group Revision
11 * @group Storage
12 * @group ContentHandler
13 * @group Database
14 * @group medium
15 */
16 class RevisionMcrWriteBothDbTest extends RevisionDbTestBase {
17
18 use McrWriteBothSchemaOverride;
19
20 protected function getContentHandlerUseDB() {
21 return true;
22 }
23
24 public function provideGetTextId() {
25 yield [ [], null ];
26
27 $row = (object)[
28 'rev_id' => 7,
29 'rev_page' => 1, // should match actual page id
30 'rev_text_id' => 789,
31 'rev_timestamp' => '20180101000000',
32 'rev_len' => 7,
33 'rev_minor_edit' => 0,
34 'rev_deleted' => 0,
35 'rev_parent_id' => 0,
36 'rev_sha1' => 'deadbeef',
37 'rev_comment' => 'some comment',
38 'rev_comment_text' => 'some comment',
39 'rev_comment_data' => '{}',
40 'rev_user' => 17,
41 'rev_user_text' => 'some user',
42 ];
43
44 yield [ $row, 789 ];
45 }
46
47 public function provideGetRevisionText() {
48 yield [
49 [ 'text' ]
50 ];
51 }
52 }