WordPress.org

Make WordPress Core

Ticket #34438: 34438.patch

File 34438.patch, 1.0 KB (added by tyxla, 5 years ago)

Moving the @runTestsInSeparateProcesses and @preserveGlobalState annotations to the methods in Tests_oEmbed_HTTP_Headers.

  • tests/phpunit/tests/oembed/headers.php

     
    11<?php
    22
    33/**
    4  * @runTestsInSeparateProcesses
    5  * @preserveGlobalState disabled
    64 * @group oembed
    75 * @group oembed-headers
    86 */
    97class Tests_oEmbed_HTTP_Headers extends WP_UnitTestCase {
     8        /**
     9         * @runTestsInSeparateProcesses
     10         * @preserveGlobalState disabled
     11         */
    1012        function test_request_json_response_headers() {
    1113                if ( ! function_exists( 'xdebug_get_headers' ) ) {
    1214                        $this->markTestSkipped( 'xdebug is required for this test' );
     
    4143                $this->assertTrue( in_array( 'X-Content-Type-Options: nosniff', $headers ) );
    4244        }
    4345
     46        /**
     47         * @runTestsInSeparateProcesses
     48         * @preserveGlobalState disabled
     49         */
    4450        function test_request_xml_response_headers() {
    4551                if ( ! function_exists( 'xdebug_get_headers' ) ) {
    4652                        $this->markTestSkipped( 'xdebug is required for this test' );