Skip to content

Commit bbe11fa

Browse files
unfulvio-godaddyunfulvioitambek-godaddynikolas4175-godaddy
authored
Handle support of Apple Pay and Google Pay in WC Cart/Checkout blocks (#656)
* Do not enqueue legacy ext checkout assets if block in use * Update changelog * Bail loading scripts if not product page or checkout block in use * Update ext checkout should enqueue script to consider specific blocks * Removed typed return to avoid breaking bc * Accidental typo * Add methods to work with the payment processing context * Remove `Blocks_Handler::is_checkout_block_in_use` check This check determines if block-based checkout is the default, but this is not what we want, because block checkout may be used even if not the default. * Add sanity check to session exists before adding a notice * Update changelog * Allow dynamic properties * Spacing * Add the checkout button text to the payment data payload (#660) * Add checkout button text to payment form data * Tweak message key * Update namespace ref * Update phpdocs * Add missing since tags * Fix since tags --------- Co-authored-by: Fulvio Notarstefano <[email protected]> * Fix `remove_support()` method in base gateway class (#662) * only remove features that are already set * reindex after removal * Apply review feedback --------- Co-authored-by: Fulvio Notarstefano <[email protected]> * Update phpdocs and array shorthand * Update changelog * Remove internal tag from stub method * Update phpdocs * Release: v5.12.1 --------- Co-authored-by: Fulvio Notarstefano <[email protected]> Co-authored-by: Illimar Tambek <[email protected]> Co-authored-by: Illimar Tambek (GoDaddy) <[email protected]> Co-authored-by: Nik McLaughlin <[email protected]>
1 parent cbd57b5 commit bbe11fa

File tree

135 files changed

+1112
-984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1112
-984
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "skyverge/wc-plugin-framework",
33
"description": "The official SkyVerge WooCommerce plugin framework",
4-
"version": "5.12.0",
4+
"version": "5.12.1",
55
"license": "GPL-3.0",
66
"minimum-stability": "dev",
77
"prefer-stable": true,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wc-plugin-framework",
3-
"version": "5.12.0",
3+
"version": "5.12.1",
44
"title": "WooCommerce Plugin Framework",
55
"author": "SkyVerge Team",
66
"homepage": "https://github.com/skyverge/wc-plugin-framework#readme",

tests/_support/plugins/gateway-test-plugin/includes/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SkyVerge\WooCommerce\GatewayTestPlugin;
44

5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
66

77
defined( 'ABSPATH' ) or exit;
88

tests/_support/plugins/gateway-test-plugin/includes/Gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SkyVerge\WooCommerce\GatewayTestPlugin;
44

5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
66

77
defined( 'ABSPATH' ) or exit;
88

tests/_support/plugins/gateway-test-plugin/includes/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\GatewayTestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/_support/plugins/test-plugin/includes/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\TestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/_support/plugins/test-plugin/includes/Gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\TestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/_support/plugins/test-plugin/includes/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\TestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/integration/API/CacheableAPIBaseTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\API\Abstract_Cacheable_API_Base;
5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\API\Traits\Cacheable_Request_Trait;
6-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_API_JSON_Request;
7-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_API_Request;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\API\Abstract_Cacheable_API_Base;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\API\Traits\Cacheable_Request_Trait;
6+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_API_JSON_Request;
7+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_API_Request;
88

99
if ( ! defined( 'ABSPATH' ) ) {
1010
define( 'ABSPATH', true );

tests/integration/DependenciesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Tests for the SV_WC_Plugin_Dependencies class.
55
*
6-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin_Dependencies
6+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin_Dependencies
77
*/
88
class DependenciesTest extends \Codeception\TestCase\WPTestCase {
99

@@ -31,7 +31,7 @@ protected function _after() {
3131

3232

3333
/**
34-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin_Dependencies::get_active_scripts_optimization_plugins()
34+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin_Dependencies::get_active_scripts_optimization_plugins()
3535
*/
3636
public function test_get_active_scripts_optimization_plugins() {
3737

@@ -40,7 +40,7 @@ public function test_get_active_scripts_optimization_plugins() {
4040

4141

4242
/**
43-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin_Dependencies::is_scripts_optimization_plugin_active()
43+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin_Dependencies::is_scripts_optimization_plugin_active()
4444
*/
4545
public function test_is_scripts_optimization_plugin_active() {
4646

tests/integration/HelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
44

55
/**
66
* Tests for the helper class.
77
*
8-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin_Compatibility
8+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin_Compatibility
99
*/
1010
class HelperTest extends \Codeception\TestCase\WPTestCase {
1111

tests/integration/PluginTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Tests for the base plugin class.
55
*
6-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin
6+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin
77
*/
88
class PluginTest extends \Codeception\TestCase\WPTestCase {
99

@@ -152,7 +152,7 @@ public function test_get_framework_assets_path() {
152152
*/
153153
public function test_get_dependency_handler() {
154154

155-
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin_Dependencies', $this->get_plugin()->get_dependency_handler() );
155+
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin_Dependencies', $this->get_plugin()->get_dependency_handler() );
156156
}
157157

158158

@@ -161,7 +161,7 @@ public function test_get_dependency_handler() {
161161
*/
162162
public function test_get_lifecycle_handler() {
163163

164-
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_0\Plugin\Lifecycle', $this->get_plugin()->get_lifecycle_handler() );
164+
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_1\Plugin\Lifecycle', $this->get_plugin()->get_lifecycle_handler() );
165165
}
166166

167167

tests/integration/REST_API/Controllers/SettingsTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\REST_API\Controllers\Settings;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Abstract_Settings;
5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Setting;
6-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Control;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\REST_API\Controllers\Settings;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Abstract_Settings;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Setting;
6+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Control;
77

88
/**
99
* Tests for the Settings class.
1010
*
11-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\REST_API\Controllers\Settings
11+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\REST_API\Controllers\Settings
1212
*/
1313
class SettingsTest extends \Codeception\TestCase\WPTestCase {
1414

tests/integration/REST_API/RESTAPITest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Abstract_Settings;
5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Helper;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Abstract_Settings;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Helper;
66

77
/**
88
* Tests for the REST_API class.
99
*
10-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\REST_API
10+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\REST_API
1111
*/
1212
class RESTAPITest extends \Codeception\TestCase\WPTestCase {
1313

tests/integration/SV_WC_Payment_Gateway_Helper_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Helper;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Helper;
44

55
/**
66
* Tests for the Payment Gateway Helper class.
77
*
8-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Helper
8+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Helper
99
*/
1010
class SV_WC_Payment_Gateway_Helper_Test extends \Codeception\TestCase\WPTestCase {
1111

tests/integration/Settings_API/AbstractSettingsTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Abstract_Settings;
5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Setting;
6-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Control;
7-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin_Exception;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Abstract_Settings;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Setting;
6+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Control;
7+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin_Exception;
88

99
/**
1010
* Tests for the Abstract_Settings class.
1111
*
12-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Abstract_Settings
12+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Abstract_Settings
1313
*/
1414
class AbstractSettingsTest extends \Codeception\TestCase\WPTestCase {
1515

tests/integration/Settings_API/SettingTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\Settings_API\Setting;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Plugin_Exception;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\Settings_API\Setting;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Plugin_Exception;
55

66
class SettingTest extends \Codeception\TestCase\WPTestCase {
77

tests/integration/payment-gateway/GatewayPluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Tests for the gateway plugin class.
55
*
6-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Plugin
6+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Plugin
77
*/
88
class GatewayPluginTest extends \Codeception\TestCase\WPTestCase {
99

tests/integration/payment-gateway/MyPaymentMethodsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_My_Payment_Methods;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Plugin;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_My_Payment_Methods;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Plugin;
55

66
/**
77
* Tests for the SV_WC_Payment_Gateway_My_Payment_Methods class.
88
*
9-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_My_Payment_Methods
9+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_My_Payment_Methods
1010
*/
1111
class MyPaymentMethodsTest extends \Codeception\TestCase\WPTestCase {
1212

@@ -116,7 +116,7 @@ public function test_render_js() {
116116
$payment_methods->render_js();
117117

118118
$this->assertStringContainsString( 'function load_gateway_test_plugin_payment_methods_handler', $wc_queued_js );
119-
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_methods_handler_v5_12_0_loaded\', load_gateway_test_plugin_payment_methods_handler );', $wc_queued_js );
119+
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_methods_handler_v5_12_1_loaded\', load_gateway_test_plugin_payment_methods_handler );', $wc_queued_js );
120120
}
121121

122122

tests/integration/payment-gateway/PaymentFormTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Payment_Form;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Payment_Form;
44

55
/**
66
* Tests for the SV_WC_Payment_Gateway_Payment_Form class.
77
*
8-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Payment_Form
8+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Payment_Form
99
*/
1010
class PaymentFormTest extends \Codeception\TestCase\WPTestCase {
1111

@@ -90,7 +90,7 @@ public function test_render_js() {
9090
$this->get_plugin()->get_gateway()->get_payment_form_instance()->render_js();
9191

9292
$this->assertStringContainsString( 'function load_test_gateway_payment_form_handler', $wc_queued_js );
93-
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_form_handler_v5_12_0_loaded\', load_test_gateway_payment_form_handler );', $wc_queued_js );
93+
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_form_handler_v5_12_1_loaded\', load_test_gateway_payment_form_handler );', $wc_queued_js );
9494
}
9595

9696

tests/integration/payment-gateway/SV_WC_Payment_Gateway_Payment_Token_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
use \SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
3+
use \SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
44

55
/**
66
* Tests for the payment token object
77
*
8-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Payment_Token
8+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Payment_Token
99
*/
1010
class SV_WC_Payment_Gateway_Payment_Token_Test extends \Codeception\TestCase\WPTestCase {
1111

tests/integration/payment-gateway/SV_WC_Payment_Gateway_Payment_Tokens_Handler_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
use \SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
3+
use \SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
44

55
/**
66
* Tests for the payment tokens handler object
77
*
8-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Payment_Tokens_Handler
8+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Payment_Tokens_Handler
99
*/
1010
class SV_WC_Payment_Gateway_Payment_Tokens_Handler_Test extends \Codeception\TestCase\WPTestCase {
1111

tests/integration/payment-gateway/apple-pay/ApplePayFrontendTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Plugin;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Apple_Pay;
5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Apple_Pay_Frontend;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Plugin;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Apple_Pay;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Apple_Pay_Frontend;
66

77
/**
88
* Tests for the SV_WC_Payment_Gateway_Apple_Pay_Frontend class.
99
*
10-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_Payment_Gateway_Apple_Pay_Frontend
10+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_Payment_Gateway_Apple_Pay_Frontend
1111
*/
1212
class ApplePayFrontendTest extends \Codeception\TestCase\WPTestCase {
1313

@@ -106,7 +106,7 @@ public function test_enqueue_js_handler() {
106106
$method->invokeArgs( $frontend_instance, [[]] );
107107

108108
$this->assertStringContainsString( 'function load_test_gateway_apple_pay_handler', $wc_queued_js );
109-
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_apple_pay_handler_v5_12_0_loaded\', load_test_gateway_apple_pay_handler );', $wc_queued_js );
109+
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_apple_pay_handler_v5_12_1_loaded\', load_test_gateway_apple_pay_handler );', $wc_queued_js );
110110
}
111111

112112

tests/unit/API/CacheableRequestTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace API;
44

5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\API\Traits\Cacheable_Request_Trait;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\API\Traits\Cacheable_Request_Trait;
66

77
if ( ! defined( 'ABSPATH' ) ) {
88
define( 'ABSPATH', true );

tests/unit/CountryHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function _after() {
1919
}
2020

2121
/**
22-
* Tests \SkyVerge\WooCommerce\PluginFramework\v5_12_0\Country_Helper::convert_alpha_country_code()
22+
* Tests \SkyVerge\WooCommerce\PluginFramework\v5_12_1\Country_Helper::convert_alpha_country_code()
2323
*
2424
* @param string $code input country code
2525
* @param string $expected expected return value
@@ -28,7 +28,7 @@ protected function _after() {
2828
*/
2929
public function test_convert_alpha_country_code( $code, $expected ) {
3030

31-
$result = \SkyVerge\WooCommerce\PluginFramework\v5_12_0\Country_Helper::convert_alpha_country_code( $code );
31+
$result = \SkyVerge\WooCommerce\PluginFramework\v5_12_1\Country_Helper::convert_alpha_country_code( $code );
3232

3333
$this->assertEquals( $expected, $result );
3434
}

0 commit comments

Comments
 (0)