From 3f15bbba5d7e99a4145c7116523b81fabdeba5a2 Mon Sep 17 00:00:00 2001 From: Jake Foster Date: Tue, 5 Nov 2024 15:34:38 -0500 Subject: [PATCH] namespace native func --- tests/Alley/WP/Alleyvate/Features/DisableXMLRPCTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Alley/WP/Alleyvate/Features/DisableXMLRPCTest.php b/tests/Alley/WP/Alleyvate/Features/DisableXMLRPCTest.php index c1fb9c0d..33692ce9 100644 --- a/tests/Alley/WP/Alleyvate/Features/DisableXMLRPCTest.php +++ b/tests/Alley/WP/Alleyvate/Features/DisableXMLRPCTest.php @@ -54,7 +54,7 @@ public function test_disable_xmlrpc(): void { $this->assertEmpty( apply_filters( 'xmlrpc_methods', [ 'testMethod' ] ) ); // Fake a request from a Jetpack IP and ensure XMLRPC is allowed for Jetpack origins. - define( 'JETPACK__VERSION', 'x.y.z' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound + \define( 'JETPACK__VERSION', 'x.y.z' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound $_SERVER['REMOTE_ADDR'] = '192.0.80.5'; // phpcs:ignore WordPressVIPMinimum.Variables.ServerVariables.UserControlledHeaders,WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___SERVER__REMOTE_ADDR__ $this->fake_request( 'https://jetpack.com/ips-v4.json' ) ->with_response_code( 200 )