Skip to content

Commit

Permalink
Merge pull request #574 from godaddy-wordpress/release/5.10.14
Browse files Browse the repository at this point in the history
Release: v5.10.14
  • Loading branch information
unfulvio authored Dec 6, 2022
2 parents 3944f1e + e9e9e91 commit 12bb5f0
Show file tree
Hide file tree
Showing 146 changed files with 412 additions and 421 deletions.
9 changes: 0 additions & 9 deletions .tx/config

This file was deleted.

5 changes: 1 addition & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ module.exports = function( grunt ) {
// Register update_translations task
grunt.registerTask( 'update_translations', [
'makepot',
'shell:tx_push',
'shell:tx_pull',
'potomo'
'potomo',
] );

// Register build task
Expand All @@ -76,7 +74,6 @@ module.exports = function( grunt ) {
'coffee',
'sass',
'makepot',
'shell:tx_push',
] );

};
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.10.13",
"version": "5.10.14",
"require-dev": {
"lucatume/wp-browser": "3.0.5",
"phpcompatibility/php-compatibility": "9.3.5",
Expand Down
20 changes: 0 additions & 20 deletions grunt/configs/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,5 @@ module.exports = function( grunt ) {

var config = {};

// The update_translations task updates any existing translations with
// messages from the POT file and compiles them to MO files.
config.shell = {

tx_push: {
options: {
failOnError: false,
},
command: 'tx push -s --skip'
},

tx_pull: {
options: {
failOnError: false,
},
command: 'tx pull -a --skip '
},

};

return config;
};
2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
WooCommerce Plugin Framework

Copyright 2013-2020, SkyVerge, Inc.
Copyright 2013-2022, SkyVerge, Inc.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion 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.10.13",
"version": "5.10.14",
"title": "WooCommerce Plugin Framework",
"author": "SkyVerge Team",
"homepage": "https://github.com/skyverge/wc-plugin-framework#readme",
Expand Down
2 changes: 0 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# WooCommerce Plugin Framework

[![Built with Grunt](https://gruntjs.com/cdn/builtwith.svg)](http://gruntjs.com/) [![Build Status](https://travis-ci.org/skyverge/wc-plugin-framework.svg?branch=master)](https://travis-ci.org/skyverge/wc-plugin-framework) [![Code Climate](https://codeclimate.com/github/skyverge/wc-plugin-framework/badges/gpa.svg)](https://codeclimate.com/github/skyverge/wc-plugin-framework)

The SkyVerge WooCommerce Plugin Framework is a set of related classes and helpers that make it easy to build and maintain WooCommerce extensions.
2 changes: 1 addition & 1 deletion tests/_archive/unit/Addresses/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit\Addresses;

use SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Unit tests for PluginFramework\Addresses\Address
Expand Down
2 changes: 1 addition & 1 deletion tests/_archive/unit/Addresses/Customer_Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit\Addresses;

use SkyVerge\WooCommerce\PluginFramework\Tests\Unit;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Unit tests for PluginFramework\Addresses\Address
Expand Down
10 changes: 5 additions & 5 deletions tests/_archive/unit/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use \WP_Mock as Mock;
use \Patchwork as p;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

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

// force ASCII handling
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_Helper::multibyte_loaded', function() { return false; } );
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_Helper::multibyte_loaded', function() { return false; } );

if ( $asserts_as_true ) {
$this->assertTrue( PluginFramework\SV_WC_Helper::str_starts_with( $haystack, $needle ) );
Expand Down Expand Up @@ -116,7 +116,7 @@ public function provider_str_starts_with_mb() {
public function test_str_ends_with_ascii( $asserts_as_true, $haystack, $needle ) {

// force ASCII handling
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_Helper::multibyte_loaded', function() { return false; } );
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_Helper::multibyte_loaded', function() { return false; } );

if ( $asserts_as_true ) {
$this->assertTrue( PluginFramework\SV_WC_Helper::str_ends_with( $haystack, $needle ) );
Expand Down Expand Up @@ -265,7 +265,7 @@ public function provider_test_str_to_sane_utf8() {
public function test_str_exists_ascii( $asserts_as_true, $haystack, $needle ) {

// force ASCII handling
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_Helper::multibyte_loaded', function() { return false; } );
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_Helper::multibyte_loaded', function() { return false; } );

if ( $asserts_as_true ) {
$this->assertTrue( PluginFramework\SV_WC_Helper::str_exists( $haystack, $needle ) );
Expand Down Expand Up @@ -346,7 +346,7 @@ public function provider_str_exists_mb() {
public function test_str_truncate_ascii() {

// force ASCII handling
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_Helper::multibyte_loaded', function() { return false; } );
p\redefine( '\SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_Helper::multibyte_loaded', function() { return false; } );

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;

use \WP_Mock as Mock;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Unit tests for \SV_WC_Payment_Gateway_API_Response_Message_Helper
Expand Down
2 changes: 1 addition & 1 deletion tests/_archive/unit/payment-gateway-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;

use \WP_Mock as Mock;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Unit tests for \SV_WC_Payment_Gateway_Helper
Expand Down
2 changes: 1 addition & 1 deletion tests/_archive/unit/payment-gateway-payment-token.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;

use \WP_Mock as Mock;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Unit tests for \SV_WC_Payment_Gateway_Payment_Token
Expand Down
4 changes: 2 additions & 2 deletions tests/_archive/unit/payment-gateway/apple-pay-api-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;

use \WP_Mock as Mock;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

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

$gateway = $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_Payment_Gateway' )->getMock();
$gateway = $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_Payment_Gateway' )->getMock();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;

use \WP_Mock as Mock;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Unit tests for \SV_WC_Payment_Gateway_Apple_Pay_API_Response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;

use \WP_Mock as Mock;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Unit tests for \SV_WC_Payment_Gateway_Apple_Pay_Payment_Response
Expand Down
6 changes: 3 additions & 3 deletions tests/_archive/unit/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SkyVerge\WooCommerce\PluginFramework\Tests\Unit;

use \WP_Mock as Mock;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_13 as PluginFramework;
use \SkyVerge\WooCommerce\PluginFramework\v5_10_14 as PluginFramework;

/**
* Plugin Test
Expand All @@ -15,7 +15,7 @@ class Plugin extends Test_Case {

public function test_constructor() {

$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_Plugin', $this->plugin() );
$this->assertInstanceOf( '\SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_Plugin', $this->plugin() );
}

public function test_clone() {
Expand Down Expand Up @@ -135,7 +135,7 @@ protected function plugin() {
),
);

return $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_Plugin' )
return $this->getMockBuilder( '\SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_Plugin' )
->setConstructorArgs( $args )
->getMockForAbstractClass();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace SkyVerge\WooCommerce\GatewayTestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;

defined( 'ABSPATH' ) or exit;

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

namespace SkyVerge\WooCommerce\GatewayTestPlugin;

use SkyVerge\WooCommerce\PluginFramework\v5_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;

defined( 'ABSPATH' ) or exit;

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

use SkyVerge\WooCommerce\PluginFramework\v5_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;

defined( 'ABSPATH' ) or exit;

Expand Down
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_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;

defined( 'ABSPATH' ) or exit;

Expand Down
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_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;

defined( 'ABSPATH' ) or exit;

Expand Down
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_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;

defined( 'ABSPATH' ) or exit;

Expand Down
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_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_13\API\Abstract_Cacheable_API_Base;
use SkyVerge\WooCommerce\PluginFramework\v5_10_13\API\Traits\Cacheable_Request_Trait;
use SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_API_JSON_Request;
use SkyVerge\WooCommerce\PluginFramework\v5_10_13\SV_WC_API_Request;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14\API\Abstract_Cacheable_API_Base;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14\API\Traits\Cacheable_Request_Trait;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_API_JSON_Request;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14\SV_WC_API_Request;

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

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


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

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


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

Expand Down
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_10_13 as Framework;
use SkyVerge\WooCommerce\PluginFramework\v5_10_14 as Framework;

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

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

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

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


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

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


Expand Down
Loading

0 comments on commit 12bb5f0

Please sign in to comment.