Changeset 46164 for trunk/tests/phpunit/tests/dependencies/styles.php
- Timestamp:
- 09/18/2019 02:49:30 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/dependencies/styles.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/styles.php
r44157 r46164 57 57 wp_enqueue_style( 'no-deps-null-version', 'example.com', array(), null ); 58 58 wp_enqueue_style( 'no-deps-null-version-print-media', 'example.com', array(), null, 'print' ); 59 59 60 $ver = get_bloginfo( 'version' ); 60 61 $expected = "<link rel='stylesheet' id='no-deps-no-version-css' href='http://example.com?ver=$ver' type='text/css' media='all' />\n"; … … 67 68 // No styles left to print 68 69 $this->assertEquals( '', get_echo( 'wp_print_styles' ) ); 70 } 71 72 /** 73 * @ticket 42804 74 */ 75 function test_wp_enqueue_style_with_html5_support_does_not_contain_type_attribute() { 76 add_theme_support( 'html5', array( 'style' ) ); 77 78 $GLOBALS['wp_styles'] = new WP_Styles(); 79 $GLOBALS['wp_styles']->default_version = get_bloginfo( 'version' ); 80 81 wp_enqueue_style( 'no-deps-no-version', 'example.com' ); 82 83 $ver = get_bloginfo( 'version' ); 84 $expected = "<link rel='stylesheet' id='no-deps-no-version-css' href='http://example.com?ver=$ver' media='all' />\n"; 85 86 $this->assertEquals( $expected, get_echo( 'wp_print_styles' ) ); 69 87 } 70 88
Note: See TracChangeset
for help on using the changeset viewer.