Make WordPress Core

Ticket #57306: 57306-disable-test.diff

File 57306-disable-test.diff, 961 bytes (added by costdev, 2 years ago)

Disable test_multiple_location_headers().

  • tests/phpunit/tests/http/base.php

    diff --git a/tests/phpunit/tests/http/base.php b/tests/phpunit/tests/http/base.php
    index ee42056bb3..54bb025caa 100644
    a b abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { 
    438438        /**
    439439         * Test HTTP Redirects with multiple Location headers specified.
    440440         *
     441         * This test has been disabled due to api.wordpress.org failing to
     442         * send two Location headers. See #57306.
     443         *
    441444         * @ticket 16890
    442445         *
    443446         * @covers ::wp_remote_head
    abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { 
    445448         * @covers ::wp_remote_get
    446449         * @covers ::wp_remote_retrieve_body
    447450         */
    448         public function test_multiple_location_headers() {
     451        public function disabled_test_multiple_location_headers() {
    449452                $url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?multiple-location-headers=1';
    450453                $res = wp_remote_head( $url, array( 'timeout' => 30 ) );
    451454