Make WordPress Core

Changeset 35272


Ignore:
Timestamp:
10/19/2015 09:26:24 PM (9 years ago)
Author:
westonruter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets.php

    r35242 r35272  
    468468        // Pretend this widget is new.
    469469        delete_option( 'widget_nav_menu' );
    470         $never_used = get_option( 'widget_nav_menu' );
    471         $this->assertFalse( $never_used );
     470        $never_used = get_option( 'widget_nav_menu', array() );
     471        $this->assertEquals( array(), (array) $never_used );
    472472
    473473        wp_widgets_init();
Note: See TracChangeset for help on using the changeset viewer.