Changeset 51454 for trunk/tests/phpunit/tests/cron.php
- Timestamp:
- 07/18/2021 02:10:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cron.php
r50610 r51454 127 127 128 128 // Make sure they're returned by wp_next_scheduled(). 129 $this->assert True( wp_next_scheduled( $hook ) > 0);130 $this->assert True( wp_next_scheduled( $hook, $args ) > 0);129 $this->assertGreaterThan( 0, wp_next_scheduled( $hook ) ); 130 $this->assertGreaterThan( 0, wp_next_scheduled( $hook, $args ) ); 131 131 132 132 // Clear the schedule for the no args events and make sure it's gone. … … 135 135 $this->assertFalse( wp_next_scheduled( $hook ) ); 136 136 // The args events should still be there. 137 $this->assert True( wp_next_scheduled( $hook, $args ) > 0);137 $this->assertGreaterThan( 0, wp_next_scheduled( $hook, $args ) ); 138 138 139 139 // Clear the schedule for the args events and make sure they're gone too. … … 166 166 167 167 // Make sure they're returned by wp_next_scheduled(). 168 $this->assert True( wp_next_scheduled( $hook ) > 0);169 $this->assert True( wp_next_scheduled( $hook, $args ) > 0);168 $this->assertGreaterThan( 0, wp_next_scheduled( $hook ) ); 169 $this->assertGreaterThan( 0, wp_next_scheduled( $hook, $args ) ); 170 170 171 171 // Clear the schedule for the no args events and make sure it's gone. … … 173 173 $this->assertFalse( wp_next_scheduled( $hook ) ); 174 174 // The args events should still be there. 175 $this->assert True( wp_next_scheduled( $hook, $args ) > 0);175 $this->assertGreaterThan( 0, wp_next_scheduled( $hook, $args ) ); 176 176 177 177 // Clear the schedule for the args events and make sure they're gone too. … … 199 199 200 200 // Make sure they're returned by wp_next_scheduled(). 201 $this->assert True( wp_next_scheduled( $hook ) > 0);202 $this->assert True( wp_next_scheduled( $hook, $args ) > 0);201 $this->assertGreaterThan( 0, wp_next_scheduled( $hook ) ); 202 $this->assertGreaterThan( 0, wp_next_scheduled( $hook, $args ) ); 203 203 204 204 // Clear the schedule for the no args events and make sure it's gone. … … 206 206 $this->assertFalse( wp_next_scheduled( $hook ) ); 207 207 // The args events should still be there. 208 $this->assert True( wp_next_scheduled( $hook, $args ) > 0);208 $this->assertGreaterThan( 0, wp_next_scheduled( $hook, $args ) ); 209 209 210 210 // Clear the schedule for the args events and make sure they're gone too. … … 233 233 234 234 // Make sure they're returned by wp_next_scheduled(). 235 $this->assert True( wp_next_scheduled( $hook ) > 0);236 $this->assert True( wp_next_scheduled( $hook, $args ) > 0);235 $this->assertGreaterThan( 0, wp_next_scheduled( $hook ) ); 236 $this->assertGreaterThan( 0, wp_next_scheduled( $hook, $args ) ); 237 237 238 238 // Clear the schedule and make sure it's gone.
Note: See TracChangeset
for help on using the changeset viewer.