- Timestamp:
- 02/22/2016 05:09:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menu-item-setting.php
r36608 r36610 768 768 'position' => 2, 769 769 'type' => 'post_type', 770 'title' => 'Hello World',770 'title' => 'Hello \o/ o\'o World', 771 771 'url' => '', 772 772 'target' => '', 773 'attr_title' => '">att empted <b>baddie</b>',774 'description' => 'Attempted <b>markup</b>',773 'attr_title' => '">att \o/ o\'o empted <b>baddie</b>', 774 'description' => 'Attempted \o/ o\'o <b>markup</b>', 775 775 'classes' => '', 776 776 'xfn' => '', … … 796 796 $this->assertEquals( wp_get_current_user()->ID, $nav_menu_item->post_author ); 797 797 $this->assertObjectHasAttribute( 'type_label', $nav_menu_item ); 798 $this->assertEquals( apply_filters( 'nav_menu_attr_title', apply_filters( 'excerpt_save_pre', $post_value['attr_title'] ) ), $nav_menu_item->attr_title ); 799 $this->assertEquals( 'Attempted markup', $nav_menu_item->description ); 798 $expected = apply_filters( 'nav_menu_attr_title', wp_unslash( apply_filters( 'excerpt_save_pre', wp_slash( $post_value['attr_title'] ) ) ) ); 799 $this->assertEquals( $expected, $nav_menu_item->attr_title ); 800 $this->assertEquals( 'Attempted \o/ o’o markup', $nav_menu_item->description ); 800 801 } 801 802 }
Note: See TracChangeset
for help on using the changeset viewer.