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 49dde7d commit ad995df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .tests/php/integration/includes/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ static function ( $f, $m, $v ) use ( &$function_name, &$message, &$version ) {
3
);

add_action( 'deprecated_argument_trigger_error', '__return_false' );

self::assertNull( hcaptcha_get_verify_output( 'some', '', $nonce_field_name, $nonce_action_name ) );
self::assertSame( 1, did_action( 'deprecated_argument_run' ) );
self::assertSame( 'hcaptcha_get_verify_output', $function_name );
Expand Down

0 comments on commit ad995df

Please sign in to comment.