X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FRevisionMcrWriteBothDbTest.php;h=f9e33bcc37565ba8d6f7ad4f1347743f2e866df9;hb=c7f7d129e39ecfd5c9fda591d45855b587b206d0;hp=436b37995d7d077d3c8cfcf060949b213d078814;hpb=e9ed100496b388a31ac2af0deabcc9754984d09d;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/RevisionMcrWriteBothDbTest.php b/tests/phpunit/includes/RevisionMcrWriteBothDbTest.php index 436b37995d..f9e33bcc37 100644 --- a/tests/phpunit/includes/RevisionMcrWriteBothDbTest.php +++ b/tests/phpunit/includes/RevisionMcrWriteBothDbTest.php @@ -1,5 +1,6 @@ 7, + 'rev_page' => 1, // should match actual page id + 'rev_text_id' => 789, + 'rev_timestamp' => '20180101000000', + 'rev_len' => 7, + 'rev_minor_edit' => 0, + 'rev_deleted' => 0, + 'rev_parent_id' => 0, + 'rev_sha1' => 'deadbeef', + 'rev_comment' => 'some comment', + 'rev_comment_text' => 'some comment', + 'rev_comment_data' => '{}', + 'rev_user' => 17, + 'rev_user_text' => 'some user', + ]; + + yield [ $row, 789 ]; + } + + public function provideGetRevisionText() { + yield [ + [ 'text' ] + ]; + } }