Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: godaddy-wordpress/wc-plugin-framework
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.12.4
Choose a base ref
...
head repository: godaddy-wordpress/wc-plugin-framework
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.12.5
Choose a head ref
  • 4 commits
  • 134 files changed
  • 4 contributors

Commits on Jun 28, 2024

  1. Release v5.12.5 (#686)

    * Try disabling order saving when we're on the payment method page
    
    * Add explanation for why we don't want to do this
    
    * Remove the order save() call completely, as we can't find any adverse effects.
    
    * Add a parameter that allows us to indicate if we're adding a payment method.
    
    * Revert "Add a parameter that allows us to indicate if we're adding a payment method."
    
    This reverts commit 801b5cf.
    
    * Don't save if there's no ID
    
    * Update changelog
    
    * Formatting
    
    * Correct version number this time.
    
    * Update versions
    
    * More version bumps
    
    * Update npm version
    
    * Set date
    
    * Update namespace in tests
    
    * Remove date for now
    agibson-godaddy authored Jun 28, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    06c0136 View commit details
  2. Update localization template .pot file (#687)

    Co-authored-by: github-actions <github-actions@github.com>
    SVC81LjKClKSjX2JK-godaddy and github-actions authored Jun 28, 2024
    Copy the full SHA
    068faef View commit details
  3. Version 5.12.5

    agibson-godaddy committed Jun 28, 2024
    Copy the full SHA
    443832d View commit details
  4. Update framework version in assets

    agibson-godaddy committed Jun 28, 2024
    Copy the full SHA
    92a6583 View commit details
Showing with 428 additions and 427 deletions.
  1. +1 −1 composer.json
  2. +2 −2 package-lock.json
  3. +1 −1 package.json
  4. +1 −1 tests/_support/plugins/gateway-test-plugin/includes/API.php
  5. +1 −1 tests/_support/plugins/gateway-test-plugin/includes/Gateway.php
  6. +1 −1 tests/_support/plugins/gateway-test-plugin/includes/Plugin.php
  7. +1 −1 tests/_support/plugins/test-plugin/includes/API.php
  8. +1 −1 tests/_support/plugins/test-plugin/includes/Gateway.php
  9. +1 −1 tests/_support/plugins/test-plugin/includes/Plugin.php
  10. +5 −5 tests/integration/API/CacheableAPIBaseTest.php
  11. +3 −3 tests/integration/DependenciesTest.php
  12. +2 −2 tests/integration/HelperTest.php
  13. +3 −3 tests/integration/PluginTest.php
  14. +5 −5 tests/integration/REST_API/Controllers/SettingsTest.php
  15. +4 −4 tests/integration/REST_API/RESTAPITest.php
  16. +2 −2 tests/integration/SV_WC_Payment_Gateway_Helper_Test.php
  17. +6 −6 tests/integration/Settings_API/AbstractSettingsTest.php
  18. +2 −2 tests/integration/Settings_API/SettingTest.php
  19. +1 −1 tests/integration/payment-gateway/GatewayPluginTest.php
  20. +4 −4 tests/integration/payment-gateway/MyPaymentMethodsTest.php
  21. +3 −3 tests/integration/payment-gateway/PaymentFormTest.php
  22. +2 −2 tests/integration/payment-gateway/SV_WC_Payment_Gateway_Payment_Token_Test.php
  23. +2 −2 tests/integration/payment-gateway/SV_WC_Payment_Gateway_Payment_Tokens_Handler_Test.php
  24. +5 −5 tests/integration/payment-gateway/apple-pay/ApplePayFrontendTest.php
  25. +1 −1 tests/unit/API/CacheableRequestTraitTest.php
  26. +2 −2 tests/unit/CountryHelperTest.php
  27. +2 −2 tests/unit/Settings_API/ControlTest.php
  28. +12 −12 tests/unit/Settings_API/SettingTest.php
  29. +1 −1 woocommerce-framework-plugin-loader-sample.php
  30. +2 −2 woocommerce/Addresses/Address.php
  31. +2 −2 woocommerce/Addresses/Customer_Address.php
  32. +5 −5 woocommerce/Blocks/Block_Integration.php
  33. +5 −5 woocommerce/Blocks/Blocks_Handler.php
  34. +8 −8 woocommerce/Blocks/Traits/Block_Integration_Trait.php
  35. +2 −2 woocommerce/Country_Helper.php
  36. +5 −5 woocommerce/Handlers/Script_Handler.php
  37. +6 −6 woocommerce/Lifecycle.php
  38. +3 −3 woocommerce/Settings_API/Abstract_Settings.php
  39. +3 −3 woocommerce/Settings_API/Control.php
  40. +3 −3 woocommerce/Settings_API/Setting.php
  41. +2 −2 woocommerce/admin/Notes_Helper.php
  42. +3 −3 woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php
  43. +4 −4 woocommerce/api/Abstract_Cacheable_API_Base.php
  44. +2 −2 woocommerce/api/abstract-sv-wc-api-json-request.php
  45. +2 −2 woocommerce/api/abstract-sv-wc-api-json-response.php
  46. +2 −2 woocommerce/api/abstract-sv-wc-api-xml-request.php
  47. +2 −2 woocommerce/api/abstract-sv-wc-api-xml-response.php
  48. +2 −2 woocommerce/api/class-sv-wc-api-base.php
  49. +2 −2 woocommerce/api/class-sv-wc-api-exception.php
  50. +2 −2 woocommerce/api/interface-sv-wc-api-request.php
  51. +2 −2 woocommerce/api/interface-sv-wc-api-response.php
  52. +2 −2 woocommerce/api/traits/Cacheable_Request_Trait.php
  53. +3 −0 woocommerce/changelog.txt
  54. +2 −2 woocommerce/class-sv-wc-admin-notice-handler.php
  55. +2 −2 woocommerce/class-sv-wc-helper.php
  56. +2 −2 woocommerce/class-sv-wc-hook-deprecator.php
  57. +2 −2 woocommerce/class-sv-wc-plugin-compatibility.php
  58. +2 −2 woocommerce/class-sv-wc-plugin-dependencies.php
  59. +2 −2 woocommerce/class-sv-wc-plugin-exception.php
  60. +3 −3 woocommerce/class-sv-wc-plugin.php
  61. +2 −2 woocommerce/class-sv-wp-admin-message-handler.php
  62. +2 −2 woocommerce/compatibility/abstract-sv-wc-data-compatibility.php
  63. +2 −2 woocommerce/compatibility/class-sv-wc-order-compatibility.php
  64. +2 −2 woocommerce/compatibility/class-sv-wc-subscription-compatibility.php
  65. +59 −59 woocommerce/i18n/languages/woocommerce-plugin-framework.pot
  66. +4 −4 woocommerce/payment-gateway/Blocks/Gateway_Blocks_Handler.php
  67. +8 −8 woocommerce/payment-gateway/Blocks/Gateway_Checkout_Block_Integration.php
  68. +2 −2 woocommerce/payment-gateway/External_Checkout/Admin.php
  69. +3 −3 woocommerce/payment-gateway/External_Checkout/External_Checkout.php
  70. +8 −8 woocommerce/payment-gateway/External_Checkout/Frontend.php
  71. +4 −4 woocommerce/payment-gateway/External_Checkout/Google_Pay/AJAX.php
  72. +4 −4 woocommerce/payment-gateway/External_Checkout/Google_Pay/Admin.php
  73. +6 −6 woocommerce/payment-gateway/External_Checkout/Google_Pay/Frontend.php
  74. +8 −8 woocommerce/payment-gateway/External_Checkout/Google_Pay/Google_Pay.php
  75. +2 −2 woocommerce/payment-gateway/External_Checkout/Orders.php
  76. +2 −2 ...ent-gateway/External_Checkout/apple-pay/api/class-sv-wc-payment-gateway-apple-pay-api-request.php
  77. +2 −2 ...nt-gateway/External_Checkout/apple-pay/api/class-sv-wc-payment-gateway-apple-pay-api-response.php
  78. +3 −3 ...rce/payment-gateway/External_Checkout/apple-pay/api/class-sv-wc-payment-gateway-apple-pay-api.php
  79. +2 −2 ...ateway/External_Checkout/apple-pay/api/class-sv-wc-payment-gateway-apple-pay-payment-response.php
  80. +3 −3 ...merce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay-admin.php
  81. +2 −2 ...mmerce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay-ajax.php
  82. +5 −5 ...ce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay-frontend.php
  83. +4 −4 woocommerce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay.php
  84. +3 −3 woocommerce/payment-gateway/Handlers/Abstract_Hosted_Payment_Handler.php
  85. +3 −3 woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php
  86. +3 −3 woocommerce/payment-gateway/Handlers/Capture.php
  87. +3 −3 woocommerce/payment-gateway/admin/abstract-sv-wc-payment-gateway-plugin-admin-setup-wizard.php
  88. +2 −2 woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php
  89. +2 −2 woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-payment-token-editor.php
  90. +2 −2 woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-user-handler.php
  91. +2 −2 woocommerce/payment-gateway/api/class-sv-wc-payment-gateway-api-response-message-helper.php
  92. +2 −2 woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-authorization-response.php
  93. +2 −2 ...ommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-create-payment-token-response.php
  94. +2 −2 woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-customer-response.php
  95. +2 −2 ...ayment-gateway/api/interface-sv-wc-payment-gateway-api-get-tokenized-payment-methods-response.php
  96. +2 −2 ...ent-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-credit-card-response.php
  97. +2 −2 .../payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-echeck-response.php
  98. +2 −2 ...ommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-response.php
  99. +2 −2 ...nt-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-tokenization-response.php
  100. +2 −2 woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-request.php
  101. +2 −2 woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-response.php
  102. +2 −2 woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api.php
  103. +2 −2 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-apple-pay.js
  104. +1 −1 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-apple-pay.js.map
  105. +2 −2 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-google-pay.js
  106. +1 −1 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-google-pay.js.map
  107. +2 −2 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js
  108. +1 −1 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js.map
  109. +2 −2 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-payment-form.js
  110. +1 −1 woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-payment-form.js.map
  111. +2 −2 woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-apple-pay.coffee
  112. +3 −3 woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-google-pay.js
  113. +2 −2 woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee
  114. +3 −3 woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-payment-form.coffee
  115. +3 −3 woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php
  116. +2 −2 woocommerce/payment-gateway/class-sv-wc-payment-gateway-helper.php
  117. +2 −2 woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php
  118. +4 −4 woocommerce/payment-gateway/class-sv-wc-payment-gateway-my-payment-methods.php
  119. +5 −5 woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php
  120. +4 −4 woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php
  121. +2 −2 woocommerce/payment-gateway/class-sv-wc-payment-gateway-privacy.php
  122. +8 −10 woocommerce/payment-gateway/class-sv-wc-payment-gateway.php
  123. +2 −2 woocommerce/payment-gateway/exceptions/class-sv-wc-payment-gateway-exception.php
  124. +2 −2 woocommerce/payment-gateway/integrations/abstract-sv-wc-payment-gateway-integration.php
  125. +2 −2 woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php
  126. +2 −2 woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php
  127. +2 −2 woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-token.php
  128. +2 −2 woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php
  129. +5 −5 woocommerce/payment-gateway/rest-api/class-sv-wc-payment-gateway-plugin-rest-api.php
  130. +4 −4 woocommerce/rest-api/Controllers/Settings.php
  131. +2 −2 woocommerce/rest-api/class-sv-wc-plugin-rest-api.php
  132. +2 −2 woocommerce/utilities/class-sv-wp-async-request.php
  133. +2 −2 woocommerce/utilities/class-sv-wp-background-job-handler.php
  134. +2 −2 woocommerce/utilities/class-sv-wp-job-batch-handler.php
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "skyverge/wc-plugin-framework",
"description": "The official SkyVerge WooCommerce plugin framework",
"version": "5.12.4",
"version": "5.12.5",
"license": "GPL-3.0",
"minimum-stability": "dev",
"prefer-stable": true,
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wc-plugin-framework",
"version": "5.12.4",
"version": "5.12.5",
"title": "WooCommerce Plugin Framework",
"author": "SkyVerge Team",
"homepage": "https://github.com/skyverge/wc-plugin-framework#readme",
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace SkyVerge\WooCommerce\GatewayTestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

defined( 'ABSPATH' ) or exit;

Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace SkyVerge\WooCommerce\GatewayTestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

defined( 'ABSPATH' ) or exit;

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace SkyVerge\WooCommerce\GatewayTestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

defined( 'ABSPATH' ) or exit;

2 changes: 1 addition & 1 deletion tests/_support/plugins/test-plugin/includes/API.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace SkyVerge\WooCommerce\TestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

defined( 'ABSPATH' ) or exit;

2 changes: 1 addition & 1 deletion tests/_support/plugins/test-plugin/includes/Gateway.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace SkyVerge\WooCommerce\TestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

defined( 'ABSPATH' ) or exit;

2 changes: 1 addition & 1 deletion tests/_support/plugins/test-plugin/includes/Plugin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace SkyVerge\WooCommerce\TestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

defined( 'ABSPATH' ) or exit;

10 changes: 5 additions & 5 deletions tests/integration/API/CacheableAPIBaseTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\API\Abstract_Cacheable_API_Base;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\API\Traits\Cacheable_Request_Trait;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_API_JSON_Request;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_API_Request;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\API\Abstract_Cacheable_API_Base;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\API\Traits\Cacheable_Request_Trait;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_API_JSON_Request;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_API_Request;

if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', true );
6 changes: 3 additions & 3 deletions tests/integration/DependenciesTest.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/**
* Tests for the SV_WC_Plugin_Dependencies class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin_Dependencies
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin_Dependencies
*/
class DependenciesTest extends \Codeception\TestCase\WPTestCase {

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


/**
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin_Dependencies::get_active_scripts_optimization_plugins()
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin_Dependencies::get_active_scripts_optimization_plugins()
*/
public function test_get_active_scripts_optimization_plugins() {

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


/**
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin_Dependencies::is_scripts_optimization_plugin_active()
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin_Dependencies::is_scripts_optimization_plugin_active()
*/
public function test_is_scripts_optimization_plugin_active() {

4 changes: 2 additions & 2 deletions tests/integration/HelperTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

/**
* Tests for the helper class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin_Compatibility
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin_Compatibility
*/
class HelperTest extends \Codeception\TestCase\WPTestCase {

6 changes: 3 additions & 3 deletions tests/integration/PluginTest.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/**
* Tests for the base plugin class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin
*/
class PluginTest extends \Codeception\TestCase\WPTestCase {

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

$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin_Dependencies', $this->get_plugin()->get_dependency_handler() );
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin_Dependencies', $this->get_plugin()->get_dependency_handler() );
}


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

$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_4\Plugin\Lifecycle', $this->get_plugin()->get_lifecycle_handler() );
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_12_5\Plugin\Lifecycle', $this->get_plugin()->get_lifecycle_handler() );
}


10 changes: 5 additions & 5 deletions tests/integration/REST_API/Controllers/SettingsTest.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4\REST_API\Controllers\Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Abstract_Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Setting;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Control;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\REST_API\Controllers\Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Abstract_Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Setting;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Control;

/**
* Tests for the Settings class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\REST_API\Controllers\Settings
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\REST_API\Controllers\Settings
*/
class SettingsTest extends \Codeception\TestCase\WPTestCase {

8 changes: 4 additions & 4 deletions tests/integration/REST_API/RESTAPITest.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Abstract_Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Helper;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Abstract_Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Helper;

/**
* Tests for the REST_API class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\REST_API
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\REST_API
*/
class RESTAPITest extends \Codeception\TestCase\WPTestCase {

4 changes: 2 additions & 2 deletions tests/integration/SV_WC_Payment_Gateway_Helper_Test.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Helper;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Helper;

/**
* Tests for the Payment Gateway Helper class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Helper
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Helper
*/
class SV_WC_Payment_Gateway_Helper_Test extends \Codeception\TestCase\WPTestCase {

12 changes: 6 additions & 6 deletions tests/integration/Settings_API/AbstractSettingsTest.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Abstract_Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Setting;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Control;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin_Exception;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Abstract_Settings;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Setting;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Control;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin_Exception;

/**
* Tests for the Abstract_Settings class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Abstract_Settings
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Abstract_Settings
*/
class AbstractSettingsTest extends \Codeception\TestCase\WPTestCase {

4 changes: 2 additions & 2 deletions tests/integration/Settings_API/SettingTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4\Settings_API\Setting;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Plugin_Exception;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\Settings_API\Setting;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Plugin_Exception;

class SettingTest extends \Codeception\TestCase\WPTestCase {

2 changes: 1 addition & 1 deletion tests/integration/payment-gateway/GatewayPluginTest.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
/**
* Tests for the gateway plugin class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Plugin
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Plugin
*/
class GatewayPluginTest extends \Codeception\TestCase\WPTestCase {

8 changes: 4 additions & 4 deletions tests/integration/payment-gateway/MyPaymentMethodsTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_My_Payment_Methods;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Plugin;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_My_Payment_Methods;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Plugin;

/**
* Tests for the SV_WC_Payment_Gateway_My_Payment_Methods class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_My_Payment_Methods
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_My_Payment_Methods
*/
class MyPaymentMethodsTest extends \Codeception\TestCase\WPTestCase {

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

$this->assertStringContainsString( 'function load_gateway_test_plugin_payment_methods_handler', $wc_queued_js );
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_methods_handler_v5_12_4_loaded\', load_gateway_test_plugin_payment_methods_handler );', $wc_queued_js );
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_methods_handler_v5_12_5_loaded\', load_gateway_test_plugin_payment_methods_handler );', $wc_queued_js );
}


6 changes: 3 additions & 3 deletions tests/integration/payment-gateway/PaymentFormTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Payment_Form;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Payment_Form;

/**
* Tests for the SV_WC_Payment_Gateway_Payment_Form class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Payment_Form
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Payment_Form
*/
class PaymentFormTest extends \Codeception\TestCase\WPTestCase {

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

$this->assertStringContainsString( 'function load_test_gateway_payment_form_handler', $wc_queued_js );
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_form_handler_v5_12_4_loaded\', load_test_gateway_payment_form_handler );', $wc_queued_js );
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_payment_form_handler_v5_12_5_loaded\', load_test_gateway_payment_form_handler );', $wc_queued_js );
}


Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use \SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use \SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

/**
* Tests for the payment token object
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Payment_Token
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Payment_Token
*/
class SV_WC_Payment_Gateway_Payment_Token_Test extends \Codeception\TestCase\WPTestCase {

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use \SkyVerge\WooCommerce\PluginFramework\v5_12_4 as Framework;
use \SkyVerge\WooCommerce\PluginFramework\v5_12_5 as Framework;

/**
* Tests for the payment tokens handler object
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Payment_Tokens_Handler
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Payment_Tokens_Handler
*/
class SV_WC_Payment_Gateway_Payment_Tokens_Handler_Test extends \Codeception\TestCase\WPTestCase {

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Plugin;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Apple_Pay;
use SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Apple_Pay_Frontend;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Plugin;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Apple_Pay;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Apple_Pay_Frontend;

/**
* Tests for the SV_WC_Payment_Gateway_Apple_Pay_Frontend class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_4\SV_WC_Payment_Gateway_Apple_Pay_Frontend
* @see \SkyVerge\WooCommerce\PluginFramework\v5_12_5\SV_WC_Payment_Gateway_Apple_Pay_Frontend
*/
class ApplePayFrontendTest extends \Codeception\TestCase\WPTestCase {

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

$this->assertStringContainsString( 'function load_test_gateway_apple_pay_handler', $wc_queued_js );
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_apple_pay_handler_v5_12_4_loaded\', load_test_gateway_apple_pay_handler );', $wc_queued_js );
$this->assertStringContainsString( 'window.jQuery( document.body ).on( \'sv_wc_apple_pay_handler_v5_12_5_loaded\', load_test_gateway_apple_pay_handler );', $wc_queued_js );
}


2 changes: 1 addition & 1 deletion tests/unit/API/CacheableRequestTraitTest.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace API;

use SkyVerge\WooCommerce\PluginFramework\v5_12_4\API\Traits\Cacheable_Request_Trait;
use SkyVerge\WooCommerce\PluginFramework\v5_12_5\API\Traits\Cacheable_Request_Trait;

if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', true );
4 changes: 2 additions & 2 deletions tests/unit/CountryHelperTest.php
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ protected function _after() {
}

/**
* Tests \SkyVerge\WooCommerce\PluginFramework\v5_12_4\Country_Helper::convert_alpha_country_code()
* Tests \SkyVerge\WooCommerce\PluginFramework\v5_12_5\Country_Helper::convert_alpha_country_code()
*
* @param string $code input country code
* @param string $expected expected return value
@@ -28,7 +28,7 @@ protected function _after() {
*/
public function test_convert_alpha_country_code( $code, $expected ) {

$result = \SkyVerge\WooCommerce\PluginFramework\v5_12_4\Country_Helper::convert_alpha_country_code( $code );
$result = \SkyVerge\WooCommerce\PluginFramework\v5_12_5\Country_Helper::convert_alpha_country_code( $code );

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