diff --git tests/phpunit/tests/admin/includesCommunityEvents.php tests/phpunit/tests/admin/includesCommunityEvents.php
index e2f8528c85..fb277c4875 100644
--- tests/phpunit/tests/admin/includesCommunityEvents.php
+++ tests/phpunit/tests/admin/includesCommunityEvents.php
@@ -284,6 +284,11 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 				'unknown',
 				false,
 			),
+			// Invalid IP. Sometimes proxies add things like this, or other arbitrary strings.
+			array(
+				'or=\"[1000:0000:0000:0000:0000:0000:0000:0001',
+				false,
+			),
 			// IPv4, no port
 			array(
 				'10.20.30.45',
