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:
parent
900810e508
commit
42687da29c
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user