Skip to content

Commit 4bb884d

Browse files
committed
Simplify conditional style no-print test
1 parent 4b7fcef commit 4bb884d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/dependencies/styles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ public function test_unnecessary_style_tags() {
359359
* @expectedDeprecated WP_Dependencies->add_data()
360360
*/
361361
public function test_conditional_inline_styles_are_also_conditional() {
362-
$expected = '';
363362
wp_enqueue_style( 'handle', 'http://example.com', array(), 1 );
364363
wp_style_add_data( 'handle', 'conditional', 'IE' );
365364
wp_add_inline_style( 'handle', 'a { color: blue; }' );
366365

367-
$this->assertSameIgnoreEOL( $expected, get_echo( 'wp_print_styles' ) );
366+
// Conditional styles are disabled.
367+
$this->assertSame( '', get_echo( 'wp_print_styles' ) );
368368
}
369369

370370
/**

0 commit comments

Comments
 (0)