Changeset 49124
- Timestamp:
- 10/11/2020 02:35:32 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesTemplate.php
r49123 r49124 214 214 } 215 215 216 // Some hardcoded defaults for core widgets 216 // Some hardcoded defaults for core widgets. 217 217 wp_add_dashboard_widget( 'dashboard_quick_press', 'Quick', '__return_false' ); 218 218 wp_add_dashboard_widget( 'dashboard_browser_nag', 'Nag', '__return_false' ); … … 221 221 $this->assertArrayHasKey( 'dashboard_browser_nag', $wp_meta_boxes['dashboard']['normal']['high'] ); 222 222 223 // Location and priority defaults 223 // Location and priority defaults. 224 224 wp_add_dashboard_widget( 'dashboard1', 'Widget 1', '__return_false', null, null, 'foo' ); 225 225 wp_add_dashboard_widget( 'dashboard2', 'Widget 2', '__return_false', null, null, null, 'bar' ); … … 228 228 $this->assertArrayHasKey( 'dashboard2', $wp_meta_boxes['dashboard']['normal']['bar'] ); 229 229 230 // Cleanup 230 // Cleanup. 231 231 remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); 232 232 remove_meta_box( 'dashboard_browser_nag', 'dashboard', 'normal' ); 233 233 remove_meta_box( 'dashboard1', 'dashboard', 'foo' ); 234 234 235 // This doesn't actually get removed due to the invalid priority 235 // This doesn't actually get removed due to the invalid priority. 236 236 remove_meta_box( 'dashboard2', 'dashboard', 'normal' ); 237 237
Note: See TracChangeset
for help on using the changeset viewer.