Changeset 43899 for branches/5.0/tests/phpunit/tests/menu/nav-menu.php
- Timestamp:
- 11/15/2018 11:19:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/tests/phpunit/tests/menu/nav-menu.php
r42026 r43899 201 201 $this->assertEqualSets( $expected_nav_menu_locations, $new_next_theme_nav_menu_locations ); 202 202 } 203 204 /** 205 * Technically possible old nav menu locations were registered numerically. 206 * 207 * @covers wp_map_nav_menu_locations() 208 */ 209 public function test_numerical_old_locations() { 210 $this->register_nav_menu_locations( array( 'primary', 1 ) ); 211 212 $old_nav_menu_locations = array( 213 'primary' => 1, 214 'tertiary' => 2, 215 0 => 3, 216 ); 217 218 $next_theme_nav_menu_locations = array(); 219 $new_next_theme_nav_menu_locations = wp_map_nav_menu_locations( $next_theme_nav_menu_locations, $old_nav_menu_locations ); 220 221 $expected_nav_menu_locations = array( 222 'primary' => 1, 223 0 => 3, 224 ); 225 226 $this->assertEqualSets( $expected_nav_menu_locations, $new_next_theme_nav_menu_locations ); 227 } 203 228 }
Note: See TracChangeset
for help on using the changeset viewer.