Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration/API/CacheableAPIBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function provider_get_request_transient_key(): array {
*
* @throws ReflectionException
*/
public function test_is_request_cacheable( bool $is_cacheable, $filter_value = null, bool $expected ) {
public function test_is_request_cacheable( bool $is_cacheable, $filter_value, bool $expected ) {

$api = $this->get_new_api_instance_with_request( $this->get_new_request_instance( $is_cacheable ) );

Expand Down Expand Up @@ -313,7 +313,7 @@ public function provider_is_request_cacheable(): array {
*
* @throws ReflectionException
*/
public function test_get_request_cache_lifetime( int $lifetime, $filter_value = null, int $expected ) {
public function test_get_request_cache_lifetime( int $lifetime, $filter_value, int $expected ) {

$api = $this->get_new_api_instance_with_request( $this->get_new_request_instance()->set_cache_lifetime( $lifetime ) );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public function ajax_process_capture() {
}

wp_send_json_success( [
'message' => html_entity_decode( wp_strip_all_tags( $result['message'] ) ), // ensure any HTML tags are removed and the currency symbol entity is decoded
'message' => html_entity_decode( wp_strip_all_tags( $result['message'] ), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ), // ensure any HTML tags are removed and the currency symbol entity is decoded
] );

} catch ( SV_WC_Payment_Gateway_Exception $e ) {
Expand Down
Loading