Skip to content

Commit 4eeb0b7

Browse files
authored
revert unit test
1 parent ab9a3f1 commit 4eeb0b7

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

tests/phpunit/tests/dependencies/wpStyleLoaderSrc.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)