From ce67d7801135b38daa76963648febb3fe6d40a5a Mon Sep 17 00:00:00 2001 From: dinamiko Date: Tue, 16 Aug 2022 11:01:13 +0200 Subject: [PATCH] Fix stub method --- tests/stubs/WC_Payment_Gateway.php | 4 ++-- tests/stubs/WC_Payment_Gateway_CC.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/stubs/WC_Payment_Gateway.php b/tests/stubs/WC_Payment_Gateway.php index bb87ee010..12a9fbf7b 100644 --- a/tests/stubs/WC_Payment_Gateway.php +++ b/tests/stubs/WC_Payment_Gateway.php @@ -12,8 +12,8 @@ class WC_Payment_Gateway } - protected function get_return_url($wcOrder) { - return $wcOrder; + protected function get_return_url($order = null) { + return ''; } public function process_admin_options() { diff --git a/tests/stubs/WC_Payment_Gateway_CC.php b/tests/stubs/WC_Payment_Gateway_CC.php index 7c7b26df6..42cae586b 100644 --- a/tests/stubs/WC_Payment_Gateway_CC.php +++ b/tests/stubs/WC_Payment_Gateway_CC.php @@ -6,7 +6,7 @@ class WC_Payment_Gateway_CC public function init_settings() {} public function process_admin_options() {} - protected function get_return_url($wcOrder) { - return $wcOrder; + protected function get_return_url($order = null) { + return ''; } }