- Timestamp:
- 03/14/2026 07:53:29 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/wpStyleLoaderSrc.php
r61388 r62025 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 .15 * before the `$_wp_admin_css_colors` global is set within the admin. 16 16 * 17 17 * The warnings that we should not see: … … 20 20 * 21 21 * @ticket 61302 22 * @ticket 64762 22 23 */ 23 24 public function test_without_wp_admin_css_colors_global() { 24 $this->assertFalse( wp_style_loader_src( '', 'colors' ) ); 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 } 25 30 } 26 31 }
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)