From ad995df19530ed5a20ac125dad0a80a77864d34c Mon Sep 17 00:00:00 2001 From: kagg-design Date: Sat, 24 Aug 2024 10:46:18 +0300 Subject: [PATCH] Fix integration tests deprecation issue. --- .tests/php/integration/includes/RequestTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.tests/php/integration/includes/RequestTest.php b/.tests/php/integration/includes/RequestTest.php index 7a1953db..49edea82 100644 --- a/.tests/php/integration/includes/RequestTest.php +++ b/.tests/php/integration/includes/RequestTest.php @@ -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 );