Changeset 47122 for trunk/tests/phpunit/tests/admin/includesTemplate.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesTemplate.php
r46586 r47122 67 67 remove_meta_box( 'testbox1', $current_screen, 'advanced' ); 68 68 69 // Check that it was removed properly ( The meta box should be set to false once that it has been removed)69 // Check that it was removed properly (the meta box should be set to false once that it has been removed). 70 70 $this->assertFalse( $wp_meta_boxes[ $current_screen ]['advanced']['default']['testbox1'] ); 71 71 } … … 77 77 global $wp_meta_boxes; 78 78 79 // Add a meta box to three different post types 79 // Add a meta box to three different post types. 80 80 add_meta_box( 'testbox1', 'Test Metabox', '__return_false', array( 'post', 'comment', 'attachment' ) ); 81 81 … … 97 97 remove_meta_box( 'testbox1', 'post', 'advanced' ); 98 98 99 // Check that we have removed the meta boxes only from posts 99 // Check that we have removed the meta boxes only from posts. 100 100 $this->assertFalse( $wp_meta_boxes['post']['advanced']['default']['testbox1'] ); 101 101 $this->assertArrayHasKey( 'testbox1', $wp_meta_boxes['comment']['advanced']['default'] );
Note: See TracChangeset
for help on using the changeset viewer.