Make WordPress Core

Ticket #41083: 41083.7.diff

File 41083.7.diff, 607 bytes (added by iandunn, 7 years ago)

Unit test for comment:41

  • tests/phpunit/tests/admin/includesCommunityEvents.php

    diff --git tests/phpunit/tests/admin/includesCommunityEvents.php tests/phpunit/tests/admin/includesCommunityEvents.php
    index e2f8528c85..fb277c4875 100644
    class Test_WP_Community_Events extends WP_UnitTestCase { 
    284284                                'unknown',
    285285                                false,
    286286                        ),
     287                        // Invalid IP. Sometimes proxies add things like this, or other arbitrary strings.
     288                        array(
     289                                'or=\"[1000:0000:0000:0000:0000:0000:0000:0001',
     290                                false,
     291                        ),
    287292                        // IPv4, no port
    288293                        array(
    289294                                '10.20.30.45',