File tree Expand file tree Collapse file tree
tests/phpunit/tests/dependencies Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,20 +12,15 @@ class Tests_Dependencies_wpStyleLoaderSrc extends WP_UnitTestCase {
1212
1313 /**
1414 * 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.
1616 *
1717 * The warnings that we should not see:
1818 * `Warning: Trying to access array offset on null`.
1919 * `Warning: Attempt to read property "url" on null`.
2020 *
2121 * @ticket 61302
22- * @ticket 64762
2322 */
2423 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 ' ) );
3025 }
3126}
You can’t perform that action at this time.
0 commit comments