X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fpoolcounter%2FPoolWorkArticleViewTest.php;h=47adfc00f0a3baacdcccd3ae6e94ca2be660d7e8;hb=5174fa8364c95ac8df9d076dbec51b70e086e01a;hp=a0beb4569a45dcdc976f2af31ef129c5ce99a413;hpb=1dee28cb5f1efd6d9e14d6cc1d0c73c3f69269b4;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/poolcounter/PoolWorkArticleViewTest.php b/tests/phpunit/includes/poolcounter/PoolWorkArticleViewTest.php index a0beb4569a..47adfc00f0 100644 --- a/tests/phpunit/includes/poolcounter/PoolWorkArticleViewTest.php +++ b/tests/phpunit/includes/poolcounter/PoolWorkArticleViewTest.php @@ -164,6 +164,10 @@ class PoolWorkArticleViewTest extends MediaWikiTestCase { $work = new PoolWorkArticleView( $page, $options, $rev1->getId(), false, $fakeRev ); $this->assertFalse( $work->execute() ); + $work = new PoolWorkArticleView( $page, $options, $rev1->getId(), false, $fakeRev, + RevisionRecord::RAW ); + $this->assertNotFalse( $work->execute() ); + // a deleted current revision should still be show $fakeRev->setId( $rev2->getId() ); $work = new PoolWorkArticleView( $page, $options, $rev2->getId(), false, $fakeRev );