mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Use ExtensionRegistry rather than class_exists
Change-Id: I5dd3acc4fff6a0a59693c5258138c4b2aa139cf8
This commit is contained in:
parent
b32929f5df
commit
e0be7340bd
|
@ -37,7 +37,7 @@ class ApiFlowThankIntegrationTest extends ApiTestCase {
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
if ( !class_exists( 'FlowHooks' ) ) {
|
if ( !ExtensionRegistry::getInstance()->isLoaded( 'Flow' ) ) {
|
||||||
$this->markTestSkipped( 'Flow is not installed' );
|
$this->markTestSkipped( 'Flow is not installed' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue