Widgets: Modify unit test assertion to be compatible with `widget_nav_menu` option being filtered by plugin to return `ArrayIterator`.

Modifies assertion added in [35100].

See #26876.
See #32474.


git-svn-id: https://develop.svn.wordpress.org/trunk@35272 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2015-10-19 21:26:24 +00:00
parent 900810e508
commit 42687da29c
1 changed files with 2 additions and 2 deletions

View File

@ -467,8 +467,8 @@ class Tests_Widgets extends WP_UnitTestCase {
// Pretend this widget is new.
delete_option( 'widget_nav_menu' );
$never_used = get_option( 'widget_nav_menu' );
$this->assertFalse( $never_used );
$never_used = get_option( 'widget_nav_menu', array() );
$this->assertEquals( array(), (array) $never_used );
wp_widgets_init();
$wp_widget_search = $wp_registered_widgets['search-2']['callback'][0];