You appear to be a bot. Output may be restricted
Description
Technically possible old nav menu locations were registered numerically.
Usage
Tests_Nav_Menu_Theme_Change::test_numerical_old_locations();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/menu/nav-menu.php
Lines:
1 to 20 of 20
public function test_numerical_old_locations() { $this->register_nav_menu_locations( array( 'primary', 1 ) ); $old_nav_menu_locations = array( 'primary' => 1, 'tertiary' => 2, 0 => 3, ); $next_theme_nav_menu_locations = array(); $new_next_theme_nav_menu_locations = wp_map_nav_menu_locations( $next_theme_nav_menu_locations, $old_nav_menu_locations ); $expected_nav_menu_locations = array( 'primary' => 1, 0 => 3, ); $this->assertSameSets( $expected_nav_menu_locations, $new_next_theme_nav_menu_locations ); }