File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ public static function init(): Faust_Integration {
5959 * Checks if Faust is enabled.
6060 */
6161 public function is_faust_enabled (): bool {
62+ if ( ! function_exists ( 'is_plugin_active ' ) ) {
63+ return false ;
64+ }
6265 return is_plugin_active ( 'faustwp/faustwp.php ' );
6366 }
6467
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function setUp() : void {
1919
2020 // Note: We need WP_Mock so we can test frontend URL resolution for Faust
2121 if (class_exists ('\WP_Mock ' )) {
22- \ WP_Mock::setUp ();
22+ WP_Mock::setUp ();
2323 }
2424
2525
@@ -115,15 +115,15 @@ public function test_faust_frontend_url_with_faust_setting() {
115115 $ frontend_uri = 'https://mocked-frontend.com ' ;
116116
117117 // We need to Mock each type so that the function can be called in different ways
118- \ WP_Mock::userFunction ('\WPE\FaustWP\Settings\faustwp_get_setting ' , [
118+ WP_Mock::userFunction ('\WPE\FaustWP\Settings\faustwp_get_setting ' , [
119119 'return ' => $ frontend_uri
120120 ]);
121121
122- \ WP_Mock::userFunction ('faustwp_get_setting ' , [
122+ WP_Mock::userFunction ('faustwp_get_setting ' , [
123123 'return ' => $ frontend_uri
124124 ]);
125125
126- \ WP_Mock::userFunction ('WPE\FaustWP\Settings\faustwp_get_setting ' , [
126+ WP_Mock::userFunction ('WPE\FaustWP\Settings\faustwp_get_setting ' , [
127127 'return ' => $ frontend_uri
128128 ]);
129129
You can’t perform that action at this time.
0 commit comments