Avoid an undefined index error in `tests/phpunit/tests/dependencies/styles.php`

See #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25376 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2013-09-12 04:13:11 +00:00
parent 148d8e1e29
commit 62b7214706
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ class Tests_Dependencies_Styles extends WP_UnitTestCase {
function setUp() {
parent::setUp();
if ( empty( $GLOBALS['wp_styles'] ) )
$GLOBALS['wp_styles'] = null;
$this->old_wp_styles = $GLOBALS['wp_styles'];
remove_action( 'wp_default_styles', 'wp_default_styles' );
$GLOBALS['wp_styles'] = new WP_Styles();