/**
* @group ContentHandler
*/
-class WikitextContentHandlerTest extends MediaWikiTestCase {
+class WikitextContentHandlerTest extends MediaWikiLangTestCase {
/**
* @var ContentHandler
* @dataProvider dataMerge3
*/
public function testMerge3( $old, $mine, $yours, $expected ) {
- global $wgDiff3;
-
- if ( !$wgDiff3 ) {
- $this->markTestSkipped( "Can't test merge3(), since \$wgDiff3 is not configured" );
- }
-
- if ( !file_exists( $wgDiff3 ) ) {
- #XXX: this sucks, since it uses arcane internal knowledge about TextContentHandler::merge3 and wfMerge.
- $this->markTestSkipped( "Can't test merge3(), since \$wgDiff3 is misconfigured: can't find $wgDiff3" );
- }
+ $this->checkHasDiff3();
// test merge
$oldContent = new WikitextContent( $old );
* @dataProvider dataGetAutosummary
*/
public function testGetAutosummary( $old, $new, $flags, $expected ) {
- global $wgLanguageCode, $wgContLang;
-
$oldContent = is_null( $old ) ? null : new WikitextContent( $old );
$newContent = is_null( $new ) ? null : new WikitextContent( $new );