You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_IncludesTemplate::test_add_meta_box_with_previously_removed_box_and_sorted_priority();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/includesTemplate.php
Lines:
1 to 16 of 16
public function test_add_meta_box_with_previously_removed_box_and_sorted_priority() { global $wp_meta_boxes; // Add a meta box to remove. add_meta_box( 'testbox1', 'Test Metabox', '__return_false', $current_screen = 'post' ); // Remove the meta box. remove_meta_box( 'testbox1', $current_screen, 'advanced' ); // Attempt to re-add the meta box with the 'sorted' priority. add_meta_box( 'testbox1', null, null, $current_screen, 'advanced', 'sorted' ); // Check that the meta box was not re-added. $this->assertFalse( $wp_meta_boxes[ $current_screen ]['advanced']['default']['testbox1'] ); }