From e0be7340bd06bf7e95223f3ff8b6cd3373ed478a Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 3 Mar 2019 02:36:06 +0100 Subject: [PATCH] Use ExtensionRegistry rather than class_exists Change-Id: I5dd3acc4fff6a0a59693c5258138c4b2aa139cf8 --- tests/phpunit/ApiFlowThankIntegrationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/ApiFlowThankIntegrationTest.php b/tests/phpunit/ApiFlowThankIntegrationTest.php index 7dfb237b..14aceea4 100644 --- a/tests/phpunit/ApiFlowThankIntegrationTest.php +++ b/tests/phpunit/ApiFlowThankIntegrationTest.php @@ -37,7 +37,7 @@ class ApiFlowThankIntegrationTest extends ApiTestCase { public function setUp() { parent::setUp(); - if ( !class_exists( 'FlowHooks' ) ) { + if ( !ExtensionRegistry::getInstance()->isLoaded( 'Flow' ) ) { $this->markTestSkipped( 'Flow is not installed' ); }