Fixed Blocks Autoloads
This commit is contained in:
parent
8b6036a30e
commit
389828ad7e
|
@ -5,7 +5,7 @@
|
||||||
* @package WooCommerce Blocks
|
* @package WooCommerce Blocks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests;
|
namespace Automattic\WooCommerce\Tests\Blocks;
|
||||||
|
|
||||||
// Require composer dependencies.
|
// Require composer dependencies.
|
||||||
require_once dirname( __DIR__ ) . '/vendor/autoload.php';
|
require_once dirname( __DIR__ ) . '/vendor/autoload.php';
|
||||||
|
|
|
@ -67,7 +67,11 @@
|
||||||
},
|
},
|
||||||
"psr-0": {
|
"psr-0": {
|
||||||
"Automattic\\WooCommerce\\Vendor\\": "lib/packages/"
|
"Automattic\\WooCommerce\\Vendor\\": "lib/packages/"
|
||||||
}
|
},
|
||||||
|
"files": [
|
||||||
|
"src/StoreApi/deprecated.php",
|
||||||
|
"src/StoreApi/functions.php"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|
|
@ -3808,7 +3808,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "woocommerce/monorepo-plugin",
|
"name": "woocommerce/monorepo-plugin",
|
||||||
"version": "dev-merge/move-blocks-php-and-assets",
|
"version": "dev-fix/block-library-build",
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"url": "../../packages/php/monorepo-plugin",
|
"url": "../../packages/php/monorepo-plugin",
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* @package WooCommerce\AI\Tests
|
* @package WooCommerce\AI\Tests
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\AI;
|
namespace Automattic\WooCommerce\Tests\Blocks\AI;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\AI\Connection;
|
use Automattic\WooCommerce\Blocks\AI\Connection;
|
||||||
use \WP_UnitTestCase;
|
use \WP_UnitTestCase;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Assets;
|
namespace Automattic\WooCommerce\Tests\Blocks\Assets;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets\Api;
|
use Automattic\WooCommerce\Blocks\Assets\Api;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Mocks\AssetDataRegistryMock;
|
use Automattic\WooCommerce\Tests\Blocks\Mocks\AssetDataRegistryMock;
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\BlockTypes;
|
namespace Automattic\WooCommerce\Tests\Blocks\BlockTypes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Mocks\CartCheckoutUtilsMock;
|
use Automattic\WooCommerce\Tests\Blocks\Mocks\CartCheckoutUtilsMock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for the Cart block type
|
* Tests for the Cart block type
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\BlockTypes;
|
namespace Automattic\WooCommerce\Tests\Blocks\BlockTypes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Mocks\ProductCollectionMock;
|
use Automattic\WooCommerce\Tests\Blocks\Mocks\ProductCollectionMock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for the ProductCollection block type
|
* Tests for the ProductCollection block type
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\BlockTypes;
|
namespace Automattic\WooCommerce\Tests\Blocks\BlockTypes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Mocks\ProductQueryMock;
|
use Automattic\WooCommerce\Tests\Blocks\Mocks\ProductQueryMock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for the ProductQuery block type
|
* Tests for the ProductQuery block type
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* bootstrap.
|
* bootstrap.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Bootstrap;
|
namespace Automattic\WooCommerce\Tests\Blocks\Bootstrap;
|
||||||
|
|
||||||
use \WP_UnitTestCase;
|
use \WP_UnitTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Domain\Bootstrap;
|
use Automattic\WooCommerce\Blocks\Domain\Bootstrap;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Domain\Package;
|
namespace Automattic\WooCommerce\Tests\Blocks\Domain\Package;
|
||||||
|
|
||||||
use \WP_UnitTestCase;
|
use \WP_UnitTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Domain\Package as TestedPackage;
|
use Automattic\WooCommerce\Blocks\Domain\Package as TestedPackage;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Library;
|
namespace Automattic\WooCommerce\Tests\Blocks\Library;
|
||||||
|
|
||||||
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
||||||
use \WC_Order;
|
use \WC_Order;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Helper used to create fixture data for tests.
|
* Helper used to create fixture data for tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Helpers;
|
namespace Automattic\WooCommerce\Tests\Blocks\Helpers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FixtureData class.
|
* FixtureData class.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Ensures the helper works.
|
* Ensures the helper works.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Helpers;
|
namespace Automattic\WooCommerce\Tests\Blocks\Helpers;
|
||||||
|
|
||||||
require_once __DIR__ . '/ValidateSchema.php';
|
require_once __DIR__ . '/ValidateSchema.php';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Helper used to validate schema differences.
|
* Helper used to validate schema differences.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Helpers;
|
namespace Automattic\WooCommerce\Tests\Blocks\Helpers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate schema.
|
* Validate schema.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Utils;
|
namespace Automattic\WooCommerce\Tests\Blocks\Utils;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Migration;
|
use Automattic\WooCommerce\Blocks\Migration;
|
||||||
use Automattic\WooCommerce\Blocks\Options;
|
use Automattic\WooCommerce\Blocks\Options;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Registry;
|
namespace Automattic\WooCommerce\Tests\Blocks\Registry;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Registry\Container as ContainerTest;
|
use Automattic\WooCommerce\Blocks\Registry\Container as ContainerTest;
|
||||||
use Automattic\WooCommerce\Blocks\Registry\FactoryType;
|
use Automattic\WooCommerce\Blocks\Registry\FactoryType;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Mocks\MockTestDependency;
|
use Automattic\WooCommerce\Tests\Blocks\Mocks\MockTestDependency;
|
||||||
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ControllerTests
|
* ControllerTests
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi;
|
||||||
|
|
||||||
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
||||||
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Formatters;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Formatters;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters\CurrencyFormatter;
|
use Automattic\WooCommerce\StoreApi\Formatters\CurrencyFormatter;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Formatters;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Formatters;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters;
|
use Automattic\WooCommerce\StoreApi\Formatters;
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters\MoneyFormatter;
|
use Automattic\WooCommerce\StoreApi\Formatters\MoneyFormatter;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Formatters;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Formatters;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters\HtmlFormatter;
|
use Automattic\WooCommerce\StoreApi\Formatters\HtmlFormatter;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Formatters;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Formatters;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters\MoneyFormatter;
|
use Automattic\WooCommerce\StoreApi\Formatters\MoneyFormatter;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Rate Limits Tests
|
* Rate Limits Tests
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Authentication;
|
use Automattic\WooCommerce\StoreApi\Authentication;
|
||||||
use Automattic\WooCommerce\StoreApi\Utilities\RateLimits;
|
use Automattic\WooCommerce\StoreApi\Utilities\RateLimits;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch Controller Tests.
|
* Batch Controller Tests.
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\ValidateSchema;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\ValidateSchema;
|
||||||
use Automattic\WooCommerce\StoreApi\SessionHandler;
|
use Automattic\WooCommerce\StoreApi\SessionHandler;
|
||||||
use Automattic\WooCommerce\StoreApi\Utilities\JsonWebToken;
|
use Automattic\WooCommerce\StoreApi\Utilities\JsonWebToken;
|
||||||
use Spy_REST_Server;
|
use Spy_REST_Server;
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\ValidateSchema;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\ValidateSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cart Coupons Controller Tests.
|
* Cart Coupons Controller Tests.
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
* Cart extensions route tests.
|
* Cart extensions route tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cart Controller Tests.
|
* Cart Controller Tests.
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\ValidateSchema;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\ValidateSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cart Controller Tests.
|
* Cart Controller Tests.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters;
|
use Automattic\WooCommerce\StoreApi\Formatters;
|
||||||
|
@ -11,7 +11,7 @@ use Automattic\WooCommerce\StoreApi\Formatters\MoneyFormatter;
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters\HtmlFormatter;
|
use Automattic\WooCommerce\StoreApi\Formatters\HtmlFormatter;
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters\CurrencyFormatter;
|
use Automattic\WooCommerce\StoreApi\Formatters\CurrencyFormatter;
|
||||||
use Automattic\WooCommerce\StoreApi\Schemas\V1\CheckoutSchema;
|
use Automattic\WooCommerce\StoreApi\Schemas\V1\CheckoutSchema;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\StoreApi\Routes\V1\Checkout as CheckoutRoute;
|
use Automattic\WooCommerce\StoreApi\Routes\V1\Checkout as CheckoutRoute;
|
||||||
use Automattic\WooCommerce\StoreApi\SchemaController;
|
use Automattic\WooCommerce\StoreApi\SchemaController;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* ControllerTestCase Tests.
|
* ControllerTestCase Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
|
||||||
use Automattic\WooCommerce\StoreApi\Formatters;
|
use Automattic\WooCommerce\StoreApi\Formatters;
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\ValidateSchema;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\ValidateSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product Attributes Controller Tests.
|
* Product Attributes Controller Tests.
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\ValidateSchema;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\ValidateSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product Attributes Controller Tests.
|
* Product Attributes Controller Tests.
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\ValidateSchema;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\ValidateSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
* Controller Tests.
|
* Controller Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\StoreApi\Routes\ControllerTestCase;
|
use Automattic\WooCommerce\Tests\Blocks\StoreApi\Routes\ControllerTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\ValidateSchema;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\ValidateSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Products Controller Tests.
|
* Products Controller Tests.
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
* CartController Tests.
|
* CartController Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Utilities;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Utilities;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
use Automattic\WooCommerce\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\StoreApi\Utilities\CartController;
|
||||||
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* NoticeHandler Tests.
|
* NoticeHandler Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Utilities;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Utilities;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Exceptions\RouteException;
|
use Automattic\WooCommerce\StoreApi\Exceptions\RouteException;
|
||||||
use Automattic\WooCommerce\StoreApi\Utilities\NoticeHandler;
|
use Automattic\WooCommerce\StoreApi\Utilities\NoticeHandler;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* OrderController Tests.
|
* OrderController Tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Utilities;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Utilities;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Exceptions\RouteException;
|
use Automattic\WooCommerce\StoreApi\Exceptions\RouteException;
|
||||||
use Automattic\WooCommerce\StoreApi\Utilities\OrderController;
|
use Automattic\WooCommerce\StoreApi\Utilities\OrderController;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\StoreApi\Utilities;
|
namespace Automattic\WooCommerce\Tests\Blocks\StoreApi\Utilities;
|
||||||
|
|
||||||
use Automattic\WooCommerce\StoreApi\Utilities\ProductQueryFilters;
|
use Automattic\WooCommerce\StoreApi\Utilities\ProductQueryFilters;
|
||||||
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Tests\Helpers\FixtureData;
|
use Automattic\WooCommerce\Tests\Blocks\Helpers\FixtureData;
|
||||||
|
|
||||||
class ProductQueryFiltersTest extends TestCase {
|
class ProductQueryFiltersTest extends TestCase {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Templates;
|
namespace Automattic\WooCommerce\Tests\Blocks\Templates;
|
||||||
|
|
||||||
use \WP_UnitTestCase;
|
use \WP_UnitTestCase;
|
||||||
use Automattic\WooCommerce\Blocks\Templates\SingleProductTemplateCompatibility;
|
use Automattic\WooCommerce\Blocks\Templates\SingleProductTemplateCompatibility;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Templates;
|
namespace Automattic\WooCommerce\Tests\Blocks\Templates;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Templates\SingleProductTemplate;
|
use Automattic\WooCommerce\Blocks\Templates\SingleProductTemplate;
|
||||||
use \WP_UnitTestCase;
|
use \WP_UnitTestCase;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Utils;
|
namespace Automattic\WooCommerce\Tests\Blocks\Utils;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Migration;
|
use Automattic\WooCommerce\Blocks\Migration;
|
||||||
use Automattic\WooCommerce\Blocks\Options;
|
use Automattic\WooCommerce\Blocks\Options;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\BlockTypes;
|
namespace Automattic\WooCommerce\Tests\Blocks\BlockTypes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Utils\MiniCartUtils;
|
use Automattic\WooCommerce\Blocks\Utils\MiniCartUtils;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Mocks;
|
namespace Automattic\WooCommerce\Tests\Blocks\Mocks;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Mocks;
|
namespace Automattic\WooCommerce\Tests\Blocks\Mocks;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils;
|
use Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Mocks;
|
namespace Automattic\WooCommerce\Tests\Blocks\Mocks;
|
||||||
|
|
||||||
class MockTestDependency {
|
class MockTestDependency {
|
||||||
public $dependency;
|
public $dependency;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Mocks;
|
namespace Automattic\WooCommerce\Tests\Blocks\Mocks;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection;
|
use Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection;
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Automattic\WooCommerce\Blocks\Tests\Mocks;
|
namespace Automattic\WooCommerce\Tests\Blocks\Mocks;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\BlockTypes\ProductQuery;
|
use Automattic\WooCommerce\Blocks\BlockTypes\ProductQuery;
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
|
|
Loading…
Reference in New Issue