Skip to content

Commit

Permalink
namespace native func
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewrfoster committed Nov 5, 2024
1 parent 6809280 commit 3f15bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Alley/WP/Alleyvate/Features/DisableXMLRPCTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 3f15bbb

Please sign in to comment.