Added a PSR-4 namespaced tests/php folder for tests written against new code in the src directory

This commit is contained in:
Christopher Allford 2020-04-28 15:41:04 -07:00
parent 1b2f5ab4ad
commit 04ec11e90b
3 changed files with 7 additions and 0 deletions

View File

@ -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"

View File

@ -11,6 +11,7 @@
<testsuites>
<testsuite name="WooCommerce Test Suite">
<directory suffix=".php">./tests/legacy/unit-tests</directory>
<directory suffix=".php">./tests/php</directory>
</testsuite>
</testsuites>
<filter>

1
tests/php/.gitkeep Normal file
View File

@ -0,0 +1 @@
# Placeholder to include the folder. Remove once tests have been written!