Skip to content

Commit de7f429

Browse files
Version 5.10.3
2 parents f052b09 + b926276 commit de7f429

File tree

135 files changed

+333
-330
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

+333
-330
lines changed

composer.json

+1-1
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.10.2",
4+
"version": "5.10.3",
55
"require-dev": {
66
"lucatume/wp-browser": "2.4.6",
77
"phpcompatibility/php-compatibility": "9.3.5",

package.json

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

tests/_archive/unit/Addresses/Address.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit\Addresses;
44

55
use SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for PluginFramework\Addresses\Address

tests/_archive/unit/Addresses/Customer_Address.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit\Addresses;
44

55
use SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for PluginFramework\Addresses\Address

tests/_archive/unit/helper.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use \WP_Mock as Mock;
66
use \Patchwork as p;
7-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
7+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
88

99
/**
1010
* Helper Class Unit Tests
@@ -31,7 +31,7 @@ class Helper extends Test_Case {
3131
public function test_str_starts_with_ascii( $asserts_as_true, $haystack, $needle ) {
3232

3333
// force ASCII handling
34-
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Helper::multibyte_loaded', function() { return false; } );
34+
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Helper::multibyte_loaded', function() { return false; } );
3535

3636
if ( $asserts_as_true ) {
3737
$this->assertTrue( PluginFramework\SV_WC_Helper::str_starts_with( $haystack, $needle ) );
@@ -116,7 +116,7 @@ public function provider_str_starts_with_mb() {
116116
public function test_str_ends_with_ascii( $asserts_as_true, $haystack, $needle ) {
117117

118118
// force ASCII handling
119-
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Helper::multibyte_loaded', function() { return false; } );
119+
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Helper::multibyte_loaded', function() { return false; } );
120120

121121
if ( $asserts_as_true ) {
122122
$this->assertTrue( PluginFramework\SV_WC_Helper::str_ends_with( $haystack, $needle ) );
@@ -265,7 +265,7 @@ public function provider_test_str_to_sane_utf8() {
265265
public function test_str_exists_ascii( $asserts_as_true, $haystack, $needle ) {
266266

267267
// force ASCII handling
268-
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Helper::multibyte_loaded', function() { return false; } );
268+
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Helper::multibyte_loaded', function() { return false; } );
269269

270270
if ( $asserts_as_true ) {
271271
$this->assertTrue( PluginFramework\SV_WC_Helper::str_exists( $haystack, $needle ) );
@@ -346,7 +346,7 @@ public function provider_str_exists_mb() {
346346
public function test_str_truncate_ascii() {
347347

348348
// force ASCII handling
349-
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Helper::multibyte_loaded', function() { return false; } );
349+
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Helper::multibyte_loaded', function() { return false; } );
350350

351351
$the_string = 'The quick brown fox jumps ಠ_ಠ';
352352

tests/_archive/unit/payment-gateway-api-response-message-helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
44

55
use \WP_Mock as Mock;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for \SV_WC_Payment_Gateway_API_Response_Message_Helper

tests/_archive/unit/payment-gateway-helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
44

55
use \WP_Mock as Mock;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for \SV_WC_Payment_Gateway_Helper

tests/_archive/unit/payment-gateway-payment-token.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
44

55
use \WP_Mock as Mock;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for \SV_WC_Payment_Gateway_Payment_Token

tests/_archive/unit/payment-gateway/apple-pay-api-request.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
44

55
use \WP_Mock as Mock;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for \SV_WC_Payment_Gateway_Apple_Pay_API_Request
@@ -21,7 +21,7 @@ class Payment_Gateway_Apple_Pay_API_Request extends Test_Case {
2121
*/
2222
public function test_set_merchant_data( $merchant_id, $domain_name, $display_name, $expected ) {
2323

24-
$gateway = $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Payment_Gateway' )->getMock();
24+
$gateway = $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Payment_Gateway' )->getMock();
2525

2626
$request = new PluginFramework\SV_WC_Payment_Gateway_Apple_Pay_API_Request( $gateway );
2727

tests/_archive/unit/payment-gateway/apple-pay-api-response.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
44

55
use \WP_Mock as Mock;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for \SV_WC_Payment_Gateway_Apple_Pay_API_Response

tests/_archive/unit/payment-gateway/apple-pay-payment-response.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
44

55
use \WP_Mock as Mock;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Unit tests for \SV_WC_Payment_Gateway_Apple_Pay_Payment_Response

tests/_archive/unit/plugin.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
44

55
use \WP_Mock as Mock;
6-
use \SkyVerge\WooCommerce\PluginFramework\v5_10_2 as PluginFramework;
6+
use \SkyVerge\WooCommerce\PluginFramework\v5_10_3 as PluginFramework;
77

88
/**
99
* Plugin Test
@@ -15,7 +15,7 @@ class Plugin extends Test_Case {
1515

1616
public function test_constructor() {
1717

18-
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Plugin', $this->plugin() );
18+
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Plugin', $this->plugin() );
1919
}
2020

2121
public function test_clone() {
@@ -135,7 +135,7 @@ protected function plugin() {
135135
),
136136
);
137137

138-
return $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Plugin' )
138+
return $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Plugin' )
139139
->setConstructorArgs( $args )
140140
->getMockForAbstractClass();
141141
}

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

+1-1
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_10_2 as Framework;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3 as Framework;
66

77
defined( 'ABSPATH' ) or exit;
88

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

+1-1
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_10_2 as Framework;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3 as Framework;
66

77
defined( 'ABSPATH' ) or exit;
88

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

+1-1
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_10_2 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

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

+1-1
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_10_2 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

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

+1-1
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_10_2 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

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

+1-1
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_10_2 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/integration/DependenciesTest.php

+3-3
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_10_2\SV_WC_Plugin_Dependencies
6+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_10_3\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_10_2\SV_WC_Plugin_Dependencies::get_active_scripts_optimization_plugins()
34+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_10_3\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_10_2\SV_WC_Plugin_Dependencies::is_scripts_optimization_plugin_active()
43+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Plugin_Dependencies::is_scripts_optimization_plugin_active()
4444
*/
4545
public function test_is_scripts_optimization_plugin_active() {
4646

tests/integration/HelperTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_10_2 as Framework;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3 as Framework;
44

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

tests/integration/PluginTest.php

+3-3
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_10_2\SV_WC_Plugin
6+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_10_3\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_10_2\SV_WC_Plugin_Dependencies', $this->get_plugin()->get_dependency_handler() );
155+
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\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_10_2\Plugin\Lifecycle', $this->get_plugin()->get_lifecycle_handler() );
164+
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_10_3\Plugin\Lifecycle', $this->get_plugin()->get_lifecycle_handler() );
165165
}
166166

167167

tests/integration/REST_API/Controllers/SettingsTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

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

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

tests/integration/REST_API/RESTAPITest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

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

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

tests/integration/SV_WC_Payment_Gateway_Helper_Test.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Payment_Gateway_Helper;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Payment_Gateway_Helper;
44

55
/**
66
* Tests for the Payment Gateway Helper class.
77
*
8-
* @see \SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Payment_Gateway_Helper
8+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_10_3\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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

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

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

tests/integration/Settings_API/SettingTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_10_2\Settings_API\Setting;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_10_2\SV_WC_Plugin_Exception;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3\Settings_API\Setting;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Plugin_Exception;
55

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

tests/integration/payment-gateway/GatewayPluginTest.php

+1-1
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_10_2\SV_WC_Payment_Gateway_Plugin
6+
* @see \SkyVerge\WooCommerce\PluginFramework\v5_10_3\SV_WC_Payment_Gateway_Plugin
77
*/
88
class GatewayPluginTest extends \Codeception\TestCase\WPTestCase {
99

0 commit comments

Comments
 (0)