- Timestamp:
- 05/11/2026 12:46:02 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/wpStyleLoaderSrc.php
r62025 r62349 13 13 /** 14 14 * Tests that PHP warnings are not thrown when wp_style_loader_src() is called 15 * before the `$_wp_admin_css_colors` global is set within the admin.15 * before the `$_wp_admin_css_colors` global is set. 16 16 * 17 17 * The warnings that we should not see: … … 20 20 * 21 21 * @ticket 61302 22 * @ticket 6476223 22 */ 24 23 public function test_without_wp_admin_css_colors_global() { 25 if ( is_admin() ) { 26 $this->assertFalse( wp_style_loader_src( '', 'colors' ) ); 27 } else { 28 $this->assertStringContainsString( '/colors.css', wp_style_loader_src( '', 'colors' ) ); 29 } 24 $this->assertFalse( wp_style_loader_src( '', 'colors' ) ); 30 25 } 31 26 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)