Changeset 48937 for trunk/tests/phpunit/tests/dependencies/styles.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/styles.php
r47122 r48937 64 64 $expected .= "<link rel='stylesheet' id='no-deps-null-version-print-media-css' href='http://example.com' type='text/css' media='print' />\n"; 65 65 66 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );66 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 67 67 68 68 // No styles left to print. 69 $this->assert Equals( '', get_echo( 'wp_print_styles' ) );69 $this->assertSame( '', get_echo( 'wp_print_styles' ) ); 70 70 } 71 71 … … 84 84 $expected = "<link rel='stylesheet' id='no-deps-no-version-css' href='http://example.com?ver=$ver' media='all' />\n"; 85 85 86 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );86 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 87 87 } 88 88 … … 123 123 124 124 // Go! 125 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );125 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 126 126 127 127 // No styles left to print. 128 $this->assert Equals( '', get_echo( 'wp_print_styles' ) );128 $this->assertSame( '', get_echo( 'wp_print_styles' ) ); 129 129 130 130 // Cleanup. … … 152 152 153 153 // No styles left to print. 154 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );154 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 155 155 } 156 156 … … 181 181 182 182 wp_print_styles(); 183 $this->assert Equals( $expected, $wp_styles->print_html );183 $this->assertSame( $expected, $wp_styles->print_html ); 184 184 185 185 } … … 211 211 212 212 // No styles left to print. 213 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );213 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 214 214 215 215 } … … 236 236 wp_add_inline_style( 'handle', $style ); 237 237 238 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );238 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 239 239 240 240 } … … 251 251 wp_enqueue_style( 'handle', 'http://example.com', array(), 1 ); 252 252 253 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );253 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 254 254 255 255 } … … 273 273 wp_add_inline_style( 'handle', 'a { color: blue; }' ); 274 274 275 $this->assert EqualsIgnoreEOL( $expected, get_echo( 'wp_print_styles' ) );275 $this->assertSameIgnoreEOL( $expected, get_echo( 'wp_print_styles' ) ); 276 276 } 277 277 … … 305 305 wp_add_inline_style( 'handle-three', $style ); 306 306 307 $this->assert Equals( $expected, get_echo( 'wp_print_styles' ) );307 $this->assertSame( $expected, get_echo( 'wp_print_styles' ) ); 308 308 } 309 309
Note: See TracChangeset
for help on using the changeset viewer.