X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiComparePagesTest.php;h=26c3f8fa18db8842ee21fc1f2d466e6483d8e83b;hp=9e18eb0985afc694a6d0250a861821c14a3443ab;hb=407d50c860fa5ff73cf342ca74b1a321e628eab5;hpb=4905504faded8f85a9b3d68b27da5c9e2f11bd06 diff --git a/tests/phpunit/includes/api/ApiComparePagesTest.php b/tests/phpunit/includes/api/ApiComparePagesTest.php index 9e18eb0985..26c3f8fa18 100644 --- a/tests/phpunit/includes/api/ApiComparePagesTest.php +++ b/tests/phpunit/includes/api/ApiComparePagesTest.php @@ -10,16 +10,6 @@ class ApiComparePagesTest extends ApiTestCase { protected static $repl = []; - protected function setUp() { - parent::setUp(); - - // Set $wgExternalDiffEngine to something bogus to try to force use of - // the PHP engine rather than wikidiff2. - $this->setMwGlobals( [ - 'wgExternalDiffEngine' => '/dev/null', - ] ); - } - protected function addPage( $page, $text, $model = CONTENT_MODEL_WIKITEXT ) { $title = Title::newFromText( 'ApiComparePagesTest ' . $page ); $content = ContentHandler::makeContent( $text, $title, $model ); @@ -131,6 +121,8 @@ class ApiComparePagesTest extends ApiTestCase { * @dataProvider provideDiff */ public function testDiff( $params, $expect, $exceptionCode = false, $sysop = false ) { + $this->setMwGlobals( [ 'wgDiffEngine' => 'php' ] ); + $this->doReplacements( $params ); $params += [