Changeset 56559 for trunk/tests/phpunit/tests/cron.php
- Timestamp:
- 09/12/2023 03:21:02 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cron.php
r56548 r56559 911 911 */ 912 912 public function test_schedule_short_circuit_with_error_returns_false_when_wp_error_is_set_to_false() { 913 $return_error = function ( $pre, $event, $wp_error ) {913 $return_error = function ( $pre, $event, $wp_error ) { 914 914 $this->assertFalse( $wp_error ); 915 915 … … 943 943 */ 944 944 public function test_schedule_short_circuit_with_error_returns_error_when_wp_error_is_set_to_true() { 945 $return_error = function ( $pre, $event, $wp_error ) {945 $return_error = function ( $pre, $event, $wp_error ) { 946 946 $this->assertTrue( $wp_error ); 947 947 … … 1030 1030 */ 1031 1031 public function test_deprecated_argument_usage_of_wp_clear_scheduled_hook() { 1032 $return_pre = function ( $pre, $hook, $args, $wp_error ) {1032 $return_pre = function ( $pre, $hook, $args, $wp_error ) { 1033 1033 $this->assertSame( array( 1, 2, 3 ), $args ); 1034 1034 $this->assertFalse( $wp_error ); … … 1073 1073 */ 1074 1074 public function test_clear_scheduled_hook_returns_custom_pre_filter_error_when_wp_error_is_set_to_true() { 1075 $return_error = function ( $pre, $timestamp, $hook, $args, $wp_error ) {1075 $return_error = function ( $pre, $timestamp, $hook, $args, $wp_error ) { 1076 1076 $this->assertTrue( $wp_error ); 1077 1077 … … 1108 1108 */ 1109 1109 public function test_unschedule_short_circuit_with_error_returns_false_when_wp_error_is_set_to_false() { 1110 $return_error = function ( $pre, $hook, $wp_error ) {1110 $return_error = function ( $pre, $hook, $wp_error ) { 1111 1111 $this->assertFalse( $wp_error ); 1112 1112 … … 1133 1133 */ 1134 1134 public function test_unschedule_short_circuit_with_error_returns_error_when_wp_error_is_set_to_true() { 1135 $return_error = function ( $pre, $hook, $wp_error ) {1135 $return_error = function ( $pre, $hook, $wp_error ) { 1136 1136 $this->assertTrue( $wp_error ); 1137 1137 … … 1195 1195 add_filter( 1196 1196 'pre_update_option_cron', 1197 static function () {1197 static function () { 1198 1198 return get_option( 'cron' ); 1199 1199 } … … 1217 1217 add_filter( 1218 1218 'pre_update_option_cron', 1219 static function () {1219 static function () { 1220 1220 return get_option( 'cron' ); 1221 1221 } … … 1242 1242 add_filter( 1243 1243 'pre_update_option_cron', 1244 static function () {1244 static function () { 1245 1245 return get_option( 'cron' ); 1246 1246 } … … 1268 1268 add_filter( 1269 1269 'pre_update_option_cron', 1270 static function () {1270 static function () { 1271 1271 return get_option( 'cron' ); 1272 1272 }
Note: See TracChangeset
for help on using the changeset viewer.