Changeset 47064 for trunk/tests/phpunit/tests/site-health.php
- Timestamp:
- 01/12/2020 02:16:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/site-health.php
r46586 r47064 16 16 */ 17 17 function test_cron_health_checks_critical() { 18 $wp_site_health = new WP_Site_Health(); 19 18 20 // Clear the cron array. 19 21 _set_cron_array( array() ); 20 $wp_site_health = new WP_Site_Health(); 21 $cron_health 22 23 $cron_health = $wp_site_health->get_test_scheduled_events(); 22 24 23 25 $this->assertSame( 'critical', $cron_health['status'] ); … … 34 36 */ 35 37 function test_cron_health_checks( $times, $expected_status, $expected_label, $expected_late, $expected_missed ) { 38 $wp_site_health = new WP_Site_Health(); 39 36 40 /* 37 41 * Clear the cron array. … … 48 52 } 49 53 50 $wp_site_health = new WP_Site_Health(); 51 $cron_health = $wp_site_health->get_test_scheduled_events(); 54 $cron_health = $wp_site_health->get_test_scheduled_events(); 52 55 53 56 $this->assertSame( $expected_status, $cron_health['status'] );
Note: See TracChangeset
for help on using the changeset viewer.