Changeset 52010 for trunk/tests/phpunit/tests/menu/nav-menu.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/menu/nav-menu.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/menu/nav-menu.php
r51568 r52010 9 9 * Set up. 10 10 */ 11 function set_up() {11 public function set_up() { 12 12 parent::set_up(); 13 13 … … 23 23 * @param array $locations Location slugs. 24 24 */ 25 function register_nav_menu_locations( $locations ) {25 private function register_nav_menu_locations( $locations ) { 26 26 foreach ( $locations as $location ) { 27 27 register_nav_menu( $location, ucfirst( $location ) ); … … 34 34 * @covers ::wp_map_nav_menu_locations 35 35 */ 36 function test_one_location_each() {36 public function test_one_location_each() { 37 37 $this->register_nav_menu_locations( array( 'primary' ) ); 38 38 $prev_theme_nav_menu_locations = array( … … 53 53 * @covers ::wp_map_nav_menu_locations 54 54 */ 55 function test_filter_registered_locations() {55 public function test_filter_registered_locations() { 56 56 $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); 57 57 $prev_theme_nav_menu_locations = array( … … 75 75 * @covers ::wp_map_nav_menu_locations 76 76 */ 77 function test_locations_with_same_slug() {77 public function test_locations_with_same_slug() { 78 78 $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); 79 79 $prev_theme_nav_menu_locations = array( … … 94 94 * @covers ::wp_map_nav_menu_locations 95 95 */ 96 function test_new_theme_previously_active() {96 public function test_new_theme_previously_active() { 97 97 $this->register_nav_menu_locations( array( 'primary' ) ); 98 98 … … 118 118 * @covers ::wp_map_nav_menu_locations 119 119 */ 120 function test_location_guessing() {120 public function test_location_guessing() { 121 121 $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); 122 122 … … 141 141 * @covers ::wp_map_nav_menu_locations 142 142 */ 143 function test_location_guessing_one_menu_per_group() {143 public function test_location_guessing_one_menu_per_group() { 144 144 $this->register_nav_menu_locations( array( 'primary' ) ); 145 145 $prev_theme_nav_menu_locations = array( … … 162 162 * @covers ::wp_map_nav_menu_locations 163 163 */ 164 function test_location_guessing_one_menu_per_location() {164 public function test_location_guessing_one_menu_per_location() { 165 165 $this->register_nav_menu_locations( array( 'primary', 'main' ) ); 166 166 … … 187 187 * @covers ::wp_map_nav_menu_locations 188 188 */ 189 function test_numerical_locations() {189 public function test_numerical_locations() { 190 190 $this->register_nav_menu_locations( array( 'primary', 1 ) ); 191 191
Note: See TracChangeset
for help on using the changeset viewer.