From 04ec11e90b9e2095f5255803c8eb1f3a988ac1e4 Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Tue, 28 Apr 2020 15:41:04 -0700 Subject: [PATCH] Added a PSR-4 namespaced tests/php folder for tests written against new code in the src directory --- composer.json | 5 +++++ phpunit.xml | 1 + tests/php/.gitkeep | 1 + 3 files changed, 7 insertions(+) create mode 100644 tests/php/.gitkeep diff --git a/composer.json b/composer.json index 85d4e144338..d17f7326e85 100644 --- a/composer.json +++ b/composer.json @@ -43,6 +43,11 @@ "Automattic\\WooCommerce\\": "src/" } }, + "autoload-dev": { + "psr-4": { + "Automattic\\WooCommerce\\Tests\\": "tests/php/" + } + }, "scripts": { "post-install-cmd": [ "sh ./bin/package-update.sh" diff --git a/phpunit.xml b/phpunit.xml index 772e20117c2..75b6a007d51 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -11,6 +11,7 @@ ./tests/legacy/unit-tests + ./tests/php diff --git a/tests/php/.gitkeep b/tests/php/.gitkeep new file mode 100644 index 00000000000..ff96249002a --- /dev/null +++ b/tests/php/.gitkeep @@ -0,0 +1 @@ +# Placeholder to include the folder. Remove once tests have been written!