You appear to be a bot. Output may be restricted
Description
Technically possible to register menu locations numerically.
Usage
Tests_Nav_Menu_Theme_Change::test_numerical_locations();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/menu/nav-menu.php
Lines:
1 to 18 of 18
public function test_numerical_locations() { $this->register_nav_menu_locations( array( 'primary', 1 ) ); $prev_theme_nav_menu_locations = array( 'main' => 1, 'secondary' => 2, 'tertiary' => 3, ); $old_next_theme_nav_menu_locations = array(); $new_next_theme_nav_menu_locations = wp_map_nav_menu_locations( $old_next_theme_nav_menu_locations, $prev_theme_nav_menu_locations ); $expected_nav_menu_locations = array( 'primary' => 1, ); $this->assertSameSets( $expected_nav_menu_locations, $new_next_theme_nav_menu_locations ); }