From 82f93fb2c78360aacf1e56c9d007087ead459172 Mon Sep 17 00:00:00 2001 From: Paul Kang Date: Wed, 9 Apr 2025 17:40:10 -0700 Subject: [PATCH 1/2] fixing namespacing issue with psr autoload --- tests/Unit/{ => Unit}/AbstractWPUnitTestWithSafeFiltering.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/Unit/{ => Unit}/AbstractWPUnitTestWithSafeFiltering.php (100%) diff --git a/tests/Unit/AbstractWPUnitTestWithSafeFiltering.php b/tests/Unit/Unit/AbstractWPUnitTestWithSafeFiltering.php similarity index 100% rename from tests/Unit/AbstractWPUnitTestWithSafeFiltering.php rename to tests/Unit/Unit/AbstractWPUnitTestWithSafeFiltering.php From 91d24788b27d4f4a942afc3bc525c150c0036de5 Mon Sep 17 00:00:00 2001 From: Paul Kang Date: Thu, 10 Apr 2025 09:15:17 -0700 Subject: [PATCH 2/2] Fixing issue with PHPUnit causing incorrectly namespaced tests to be skipped --- tests/Unit/{Unit => }/AbstractWPUnitTestWithSafeFiltering.php | 2 +- tests/Unit/Admin/Settings/ConnectionTest.php | 2 +- tests/Unit/Admin/Settings/ShopsTest.php | 2 +- tests/Unit/Admin/Settings_Screens/ConnectionTest.php | 2 +- tests/Unit/Admin/Settings_Screens/ShopsTest.php | 2 +- tests/Unit/Api/REST/RestAPITest.php | 2 +- tests/Unit/ApiTest.php | 2 +- tests/Unit/Feed/FeedUploadUtilsTest.php | 2 +- tests/Unit/Framework/Utilities/AsyncRequestTest.php | 2 +- tests/Unit/Handlers/MetaExtensionTest.php | 2 +- tests/Unit/WCFacebookCommerceIntegrationTest.php | 2 +- tests/Unit/WPMLTest.php | 2 +- tests/Unit/fbproductTest.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) rename tests/Unit/{Unit => }/AbstractWPUnitTestWithSafeFiltering.php (98%) diff --git a/tests/Unit/Unit/AbstractWPUnitTestWithSafeFiltering.php b/tests/Unit/AbstractWPUnitTestWithSafeFiltering.php similarity index 98% rename from tests/Unit/Unit/AbstractWPUnitTestWithSafeFiltering.php rename to tests/Unit/AbstractWPUnitTestWithSafeFiltering.php index fc199a942..fe9f11b89 100644 --- a/tests/Unit/Unit/AbstractWPUnitTestWithSafeFiltering.php +++ b/tests/Unit/AbstractWPUnitTestWithSafeFiltering.php @@ -3,7 +3,7 @@ * Abstract test case for unit tests. */ -namespace WooCommerce\Facebook\Tests\Unit; +namespace WooCommerce\Facebook\Tests; use WP_UnitTestCase; diff --git a/tests/Unit/Admin/Settings/ConnectionTest.php b/tests/Unit/Admin/Settings/ConnectionTest.php index 6fea9433b..b292246ea 100644 --- a/tests/Unit/Admin/Settings/ConnectionTest.php +++ b/tests/Unit/Admin/Settings/ConnectionTest.php @@ -1,6 +1,6 @@