WordPress.org

Make WordPress Core

Ticket #36679: 36679.diff

File 36679.diff, 615 bytes (added by ericlewis, 4 years ago)
  • tests/phpunit/includes/testcase.php

     
    412412                $this->assertEquals( $expected, $actual );
    413413        }
    414414
     415        /**
     416         * Coerce WordPress' query internals as if the given URL has been requested.
     417         *
     418         * @param string $url The URL for the request.
     419         */
    415420        function go_to( $url ) {
    416421                // note: the WP and WP_Query classes like to silently fetch parameters
    417422                // from all over the place (globals, GET, etc), which makes it tricky