X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FRevisionNoContentModelDbTest.php;h=f19bc52bb826eb2ebaacc10af491c55575098963;hp=7923b2201b922e0cecef4c8907b8f7b5f995b565;hb=1a76004e99e9994261b31bc2c1076346cdc2059c;hpb=8c96aec32cffaab96b2bd9dca206a99a13640545 diff --git a/tests/phpunit/includes/RevisionNoContentModelDbTest.php b/tests/phpunit/includes/RevisionNoContentModelDbTest.php index 7923b2201b..f19bc52bb8 100644 --- a/tests/phpunit/includes/RevisionNoContentModelDbTest.php +++ b/tests/phpunit/includes/RevisionNoContentModelDbTest.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' ] + ]; + } + }