Skip to content

Commit

Permalink
Fix integration tests deprecation issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Aug 24, 2024
1 parent 21d5a17 commit f1cf76f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .tests/php/integration/includes/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,14 +399,13 @@ public function test_hcaptcha_get_verify_output_with_deprecated_argument(): void

$this->prepare_hcaptcha_verify_post( $nonce_field_name, $nonce_action_name );

remove_action( 'deprecated_argument_run', [ $this, 'deprecated_function_run' ] );
add_action(
'deprecated_argument_run',
static function ( $f, $m, $v ) use ( &$function_name, &$message, &$version, $test_case ) {
$function_name = $f;
$message = $m;
$version = $v;

unset( $test_case->caught_deprecated[ $f ] );
},
PHP_INT_MAX,
3
Expand Down

0 comments on commit f1cf76f

Please sign in to comment.