Changeset 53508 for trunk/tests/phpunit/tests/post/nav-menu.php
- Timestamp:
- 06/15/2022 01:35:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/nav-menu.php
r53504 r53508 205 205 /** 206 206 * @ticket 55620 207 */ 208 public function test_update_menu_item_cache_primed_post() { 207 * @covers update_menu_item_cache 208 */ 209 public function test_update_menu_item_cache_primed_posts() { 209 210 $post_id = self::factory()->post->create(); 210 211 wp_update_nav_menu_item( … … 230 231 $args = $action->get_args(); 231 232 $last = end( $args ); 232 $this->assertEqualSets( array( $post_id ), $last[1], '_prime_post_caches was not executed.' );233 $this->assertEqualSets( array( $post_id ), $last[1], '_prime_post_caches() was not executed.' ); 233 234 } 234 235 235 236 /** 236 237 * @ticket 55620 238 * @covers update_menu_item_cache 237 239 */ 238 240 public function test_update_menu_item_cache_primed_terms() { … … 261 263 $args = $action->get_args(); 262 264 $last = end( $args ); 263 $this->assertEqualSets( array( $term_id ), $last[1], '_prime_term_caches was not executed.' );265 $this->assertEqualSets( array( $term_id ), $last[1], '_prime_term_caches() was not executed.' ); 264 266 } 265 267
Note: See TracChangeset
for help on using the changeset viewer.