Ticket #52607: 52607.2.diff
| File 52607.2.diff, 1.5 KB (added by , 5 years ago) |
|---|
-
tests/phpunit/tests/admin/includesPlugin.php
89 90 90 91 // Clean up the temporary user. 91 92 wp_delete_user( $admin_user ); 93 // Reset current screen. 94 set_current_screen( 'front' ); 92 95 93 96 // Verify the menu was inserted at the expected position. 94 97 $this->assertSame( 'custom-position', $submenu[ $parent ][ $expected_position ][2] ); … … 197 200 198 201 // Clean up the temporary user. 199 202 wp_delete_user( $admin_user ); 203 // Reset current screen. 204 set_current_screen( 'front' ); 200 205 201 206 foreach ( $actual_positions as $test => $actual_position ) { 202 207 // Verify the menu was inserted at the expected position. … … 280 286 // Clean up the temporary user. 281 287 wp_set_current_user( $current_user ); 282 288 wp_delete_user( $admin_user ); 289 // Reset current screen. 290 set_current_screen( 'front' ); 283 291 284 292 // Verify the menu was inserted at the expected position. 285 293 $this->assertSame( 'main_slug', $submenu['main_slug'][0][2] ); … … 311 319 // Clean up the temporary user. 312 320 wp_set_current_user( $current_user ); 313 321 wp_delete_user( $admin_user ); 322 // Reset current screen. 323 set_current_screen( 'front' ); 314 324 315 325 // Verify the menu was inserted at the expected position. 316 326 $this->assertSame( 'submenu_page_1', $submenu['main_slug'][1][2] );