From 63ba6f7ee07f26b48c215ffe6205317a94a4a5cd Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Thu, 14 May 2020 21:04:11 -0700 Subject: [PATCH] Moved the PSR-4 namespaced test directory to the correct folder I know this probably doesn't belong in this PR, but it has been thoroughly discussed and I don't think anyone will mind :) --- composer.json | 2 +- .../helper/{WCHelperTest.php => class-wc-helper-test.php} | 4 +--- tests/php/{ => src}/.gitkeep | 0 3 files changed, 2 insertions(+), 4 deletions(-) rename tests/php/includes/admin/helper/{WCHelperTest.php => class-wc-helper-test.php} (92%) rename tests/php/{ => src}/.gitkeep (100%) diff --git a/composer.json b/composer.json index 983bab82972..3380a30123f 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ }, "autoload-dev": { "psr-4": { - "Automattic\\WooCommerce\\Tests\\": "tests/php/" + "Automattic\\WooCommerce\\Tests\\": "tests/php/src" } }, "scripts": { diff --git a/tests/php/includes/admin/helper/WCHelperTest.php b/tests/php/includes/admin/helper/class-wc-helper-test.php similarity index 92% rename from tests/php/includes/admin/helper/WCHelperTest.php rename to tests/php/includes/admin/helper/class-wc-helper-test.php index 2580610b15f..e181f1e365e 100644 --- a/tests/php/includes/admin/helper/WCHelperTest.php +++ b/tests/php/includes/admin/helper/class-wc-helper-test.php @@ -5,12 +5,10 @@ * @package WooCommerce|Tests|WC_Helper. */ -namespace Automattic\WooCommerce; - /** * Class WC_Tests_WC_Helper. */ -class WCHelperTest extends \WC_Unit_Test_Case { +class WC_Helper_Test extends \WC_Unit_Test_Case { /** * Test that woo plugins are loaded correctly even if incorrect cache is intially set. diff --git a/tests/php/.gitkeep b/tests/php/src/.gitkeep similarity index 100% rename from tests/php/.gitkeep rename to tests/php/src/.gitkeep