Changeset 48939 for trunk/tests/phpunit/tests/post/nav-menu.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/nav-menu.php
r48937 r48939 107 107 108 108 $tag_items = wp_get_associated_nav_menu_items( $tag_id, 'taxonomy', 'post_tag' ); 109 $this->assert EqualSets( array( $tag_insert ), $tag_items );109 $this->assertSameSets( array( $tag_insert ), $tag_items ); 110 110 $cat_items = wp_get_associated_nav_menu_items( $cat_id, 'taxonomy', 'category' ); 111 $this->assert EqualSets( array( $cat_insert ), $cat_items );111 $this->assertSameSets( array( $cat_insert ), $cat_items ); 112 112 $post_items = wp_get_associated_nav_menu_items( $post_id ); 113 $this->assert EqualSets( array( $post_insert ), $post_items );113 $this->assertSameSets( array( $post_insert ), $post_items ); 114 114 $post_2_items = wp_get_associated_nav_menu_items( $post_2_id ); 115 $this->assert EqualSets( array( $post_2_insert ), $post_2_items );115 $this->assertSameSets( array( $post_2_insert ), $post_2_items ); 116 116 $page_items = wp_get_associated_nav_menu_items( $page_id ); 117 $this->assert EqualSets( array( $page_insert ), $page_items );117 $this->assertSameSets( array( $page_insert ), $page_items ); 118 118 119 119 wp_delete_term( $tag_id, 'post_tag' ); 120 120 $tag_items = wp_get_associated_nav_menu_items( $tag_id, 'taxonomy', 'post_tag' ); 121 $this->assert EqualSets( array(), $tag_items );121 $this->assertSameSets( array(), $tag_items ); 122 122 123 123 wp_delete_term( $cat_id, 'category' ); 124 124 $cat_items = wp_get_associated_nav_menu_items( $cat_id, 'taxonomy', 'category' ); 125 $this->assert EqualSets( array(), $cat_items );125 $this->assertSameSets( array(), $cat_items ); 126 126 127 127 wp_delete_post( $post_id, true ); 128 128 $post_items = wp_get_associated_nav_menu_items( $post_id ); 129 $this->assert EqualSets( array(), $post_items );129 $this->assertSameSets( array(), $post_items ); 130 130 131 131 wp_delete_post( $post_2_id, true ); 132 132 $post_2_items = wp_get_associated_nav_menu_items( $post_2_id ); 133 $this->assert EqualSets( array(), $post_2_items );133 $this->assertSameSets( array(), $post_2_items ); 134 134 135 135 wp_delete_post( $page_id, true ); 136 136 $page_items = wp_get_associated_nav_menu_items( $page_id ); 137 $this->assert EqualSets( array(), $page_items );137 $this->assertSameSets( array(), $page_items ); 138 138 } 139 139
Note: See TracChangeset
for help on using the changeset viewer.