Use ExtensionRegistry rather than class_exists

Change-Id: I5dd3acc4fff6a0a59693c5258138c4b2aa139cf8
This commit is contained in:
Umherirrender 2019-03-03 02:36:06 +01:00
parent b32929f5df
commit e0be7340bd

View file

@ -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' );
} }