diff --git a/tests/phpunit/tests/general/resourceHints.php b/tests/phpunit/tests/general/resourceHints.php index 8a95755cd3..a25d8bb07d 100644 --- a/tests/phpunit/tests/general/resourceHints.php +++ b/tests/phpunit/tests/general/resourceHints.php @@ -31,7 +31,7 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { } function test_should_have_defaults_on_frontend() { - $expected = "\n"; + $expected = "\n"; $this->expectOutputString( $expected ); @@ -39,10 +39,10 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { } function test_dns_prefetching() { - $expected = "\n" . - "\n" . - "\n" . - "\n"; + $expected = "\n" . + "\n" . + "\n" . + "\n"; add_filter( 'wp_resource_hints', array( $this, '_add_dns_prefetch_domains' ), 10, 2 ); @@ -70,11 +70,11 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { * @ticket 37652 */ function test_preconnect() { - $expected = "\n" . - "\n" . - "\n" . - "\n" . - "\n"; + $expected = "\n" . + "\n" . + "\n" . + "\n" . + "\n"; add_filter( 'wp_resource_hints', array( $this, '_add_preconnect_domains' ), 10, 2 ); @@ -98,10 +98,10 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { } function test_prerender() { - $expected = "\n" . - "\n" . - "\n" . - "\n"; + $expected = "\n" . + "\n" . + "\n" . + "\n"; add_filter( 'wp_resource_hints', array( $this, '_add_prerender_urls' ), 10, 2 ); @@ -124,8 +124,8 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { } function test_parse_url_dns_prefetch() { - $expected = "\n" . - "\n"; + $expected = "\n" . + "\n"; add_filter( 'wp_resource_hints', array( $this, '_add_dns_prefetch_long_urls' ), 10, 2 ); @@ -145,8 +145,8 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { } function test_dns_prefetch_styles() { - $expected = "\n" . - "\n"; + $expected = "\n" . + "\n"; $args = array( 'family' => 'Open+Sans:400', @@ -164,8 +164,8 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { } function test_dns_prefetch_scripts() { - $expected = "\n" . - "\n"; + $expected = "\n" . + "\n"; $args = array( 'family' => 'Open+Sans:400', @@ -182,8 +182,8 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { } function test_dns_prefetch_scripts_does_not_included_registered_only() { - $expected = "\n"; - $unexpected = "\n"; + $expected = "\n"; + $unexpected = "\n"; wp_register_script( 'jquery-elsewhere', 'https://wordpress.org/wp-includes/js/jquery/jquery.js' ); @@ -199,7 +199,7 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { * @ticket 37502 */ function test_deregistered_scripts_are_ignored() { - $expected = "\n"; + $expected = "\n"; wp_enqueue_script( 'test-script', 'http://example.org/script.js' ); wp_deregister_script( 'test-script' ); @@ -212,7 +212,7 @@ class Tests_WP_Resource_Hints extends WP_UnitTestCase { * @ticket 37652 */ function test_malformed_urls() { - $expected = "\n"; + $expected = "\n"; // Errant colon. add_filter( 'wp_resource_hints', array( $this, '_add_malformed_url_errant_colon' ), 10, 2 );