WordPress.org

Make WordPress Core

Changeset 35583


Ignore:
Timestamp:
11/09/2015 02:56:01 AM (6 years ago)
Author:
westonruter
Message:

Customize: Fix broken unit test for WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item().

Fixes issue in [35580] which caused unit tests to fail while run under multisite.

Fixes #32812.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/nav-menu-item-setting.php

    r35580 r35583  
    797797        $this->assertEquals( wp_get_current_user()->ID, $nav_menu_item->post_author );
    798798        $this->assertObjectHasAttribute( 'type_label', $nav_menu_item );
    799         $this->assertEquals( '“>attempted baddie', $nav_menu_item->attr_title );
     799        $this->assertEquals( apply_filters( 'nav_menu_attr_title', apply_filters( 'excerpt_save_pre', $post_value['attr_title'] ) ), $nav_menu_item->attr_title );
    800800        $this->assertEquals( 'Attempted markup', $nav_menu_item->description );
    801801    }
Note: See TracChangeset for help on using the changeset viewer.