Changeset 38100 for trunk/tests/phpunit/tests/general/resourceHints.php
- Timestamp:
- 07/19/2016 02:34:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/resourceHints.php
r38036 r38100 151 151 } 152 152 153 function test_dns_prefetch_scripts_does_not_included_registered_only() { 154 $expected = "<link rel='preconnect' href='http://s.w.org'>\n"; 155 $unexpected = "<link rel='dns-prefetch' href='//wordpress.org'>\n"; 156 157 wp_register_script( 'jquery-elsewhere', 'https://wordpress.org/wp-includes/js/jquery/jquery.js' ); 158 159 $actual = get_echo( 'wp_resource_hints' ); 160 161 wp_deregister_script( 'jquery-elsewhere' ); 162 163 $this->assertEquals( $expected, $actual ); 164 $this->assertNotContains( $unexpected, $actual ); 165 } 153 166 }
Note: See TracChangeset
for help on using the changeset viewer.