foreach ( $this->ptFileInfo['tests'] as $test ) {
$this->addTest( new ParserIntegrationTest( $runner, $fileName, $test ),
- [ 'Database', 'Parser' ] );
+ [ 'Database', 'Parser', 'ParserTests' ] );
}
}
function setUp() {
- $this->ptRunner->addArticles( $this->ptFileInfo[ 'articles'] );
+ if ( !$this->ptRunner->meetsRequirements( $this->ptFileInfo['requirements'] ) ) {
+ $this->markTestSuiteSkipped( 'required extension not enabled' );
+ } else {
+ $this->ptRunner->addArticles( $this->ptFileInfo[ 'articles'] );
+ }
}
}