mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-27 17:50:38 +00:00
Require MW >= 1.29
This commit is contained in:
parent
8a93653f0b
commit
5053750f84
|
@ -9,6 +9,9 @@
|
|||
"version": "0.3-dev",
|
||||
"type": "parserhook",
|
||||
"license-name": "GPL-3.0-or-later",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.29.0"
|
||||
},
|
||||
"config": {
|
||||
"AllInfoboxesMiserMode": true,
|
||||
"AllInfoboxesSubpagesBlacklist": [ "doc", "draft", "test" ],
|
||||
|
|
|
@ -12,7 +12,10 @@ class MediaWikiParserTest extends MediaWikiTestCase {
|
|||
$this->parser = new Parser();
|
||||
$title = Title::newFromText( 'test' );
|
||||
$options = new ParserOptions();
|
||||
$options->setOption( 'wrapclass', false );
|
||||
// Required for MW >= 1.30
|
||||
if( method_exists ( $options, 'setOption' ) ) {
|
||||
$options->setOption( 'wrapclass', false );
|
||||
}
|
||||
$this->parser->startExternalParse( $title, $options, 'text', true );
|
||||
parent::setUp();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue