Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align namespaces for unit tests #2561

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\API\Site\Controllers\Ads;
namespace Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\API\Site\Controllers\MerchantCenter;

use Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Settings;
use Automattic\WooCommerce\GoogleListingsAndAds\API\Site\Controllers\MerchantCenter\SettingsSyncController;
Expand All @@ -12,7 +12,7 @@
/**
* Class SettingsSyncControllerTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\API\Site\Controllers\Ads
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\API\Site\Controllers\MerchantCenter
*/
class SettingsSyncControllerTest extends RESTControllerUnitTest {

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

use Automattic\WooCommerce\GoogleListingsAndAds\API\Site\Controllers\MerchantCenter\ShippingTimeBatchController;
use Automattic\WooCommerce\GoogleListingsAndAds\API\TransportMethods;
use Automattic\WooCommerce\GoogleListingsAndAds\Proxies\RESTServer;
use Automattic\WooCommerce\GoogleListingsAndAds\Tests\Framework\RESTControllerUnitTest;
use Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container;
use Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\ISO3166\ISO3166DataProvider;
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/Assets/ScriptAssetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
namespace Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Assets;

use Automattic\WooCommerce\GoogleListingsAndAds\Assets\ScriptAsset;
use Automattic\WooCommerce\GoogleListingsAndAds\Exception\InvalidAsset;
use PHPUnit\Framework\TestCase;

class ScriptAssetTest extends TestCase {
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DB/Table/BudgetRecommendationTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Class MigratorTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\DB\Migration
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\DB\Table
*/
class BudgetRecommendationTableTest extends UnitTest {

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DB/Table/MerchantIssueTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Class MerchantIssueTableTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\DB\Migration
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\DB\Table
*/
class MerchantIssueTableTest extends UnitTest {

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Google/GoogleHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Class GoogleHelperTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Shipping
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Google
*/
class GoogleHelperTest extends UnitTest {

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Integration/WPCOMProxyTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\API\Site\Controllers\Ads;
namespace Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Integration;

use Automattic\WooCommerce\GoogleListingsAndAds\DB\Query\ShippingTimeQuery;
use Automattic\WooCommerce\GoogleListingsAndAds\Product\Attributes\AttributeManager;
Expand All @@ -19,7 +19,7 @@
/**
* Class WPCOMProxyTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\API\Site\Controllers\Ads
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Integration
*/
class WPCOMProxyTest extends RESTControllerUnitTest {

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Product/Attributes/AbstractAttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Class AbstractAttributeTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Product
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Product\Attributes
*/
class AbstractAttributeTest extends UnitTest {
public function test_casts_value_based_on_value_type() {
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Product/Attributes/AttributeManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Class AttributeManagerTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Product
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Product\Attributes
*/
class AttributeManagerTest extends ContainerAwareUnitTest {

Expand Down
1 change: 0 additions & 1 deletion tests/Unit/Product/ProductRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Automattic\WooCommerce\GoogleListingsAndAds\Tests\Tools\HelperTrait\ProductTrait;
use Automattic\WooCommerce\GoogleListingsAndAds\Value\ChannelVisibility;
use Automattic\WooCommerce\GoogleListingsAndAds\Value\SyncStatus;
use Automattic\WooCommerce\GoogleListingsAndAds\Value\MCStatus;
use WC_Helper_Product;
use WC_Product;

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/TaskList/CompleteSetupTaskTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\tasks;
namespace Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\TaskList;

use Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists;
use Automattic\WooCommerce\GoogleListingsAndAds\MerchantCenter\MerchantCenterService;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/View/PHPViewFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Class PHPViewFactoryTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Utility
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\View
*/
class PHPViewFactoryTest extends UnitTest {

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/View/PHPViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Class PHPViewTest
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Utility
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\View
*/
class PHPViewTest extends UnitTest {

Expand Down