Rename tests dir

This commit is contained in:
Mike Jolley 2019-06-24 16:17:02 +01:00
parent a703749a46
commit 09ef1e74cf
6 changed files with 11 additions and 11 deletions

2
.gitattributes vendored
View File

@ -1,7 +1,7 @@
/.* export-ignore
/phpcs.xml export-ignore
/phpunit.* export-ignore
/unit-tests export-ignore
/tests export-ignore
/vendor export-ignore
/README.md export-ignore
/readme.txt export-ignore

2
.gitignore vendored
View File

@ -26,7 +26,7 @@ Thumbs.db
# Unit tests
/tmp
/unit-tests/bin/tmp
/tests/bin/tmp
# Logs
/logs

View File

@ -27,7 +27,7 @@ filter:
- src/Controllers/Version1/
- src/Controllers/Version2/
- src/Controllers/Version3/
- unit-tests/
- tests/
- vendor/
- classmap.php
coding_style:

View File

@ -20,8 +20,8 @@ before_script:
- composer install
- composer global require "phpunit/phpunit=4.8.*|6.5.*"
- composer require woocommerce/woocommerce-sniffs
- bash unit-tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
script:
- bash unit-tests/bin/phpunit.sh
- bash unit-tests/bin/phpcs.sh
- bash tests/bin/phpunit.sh
- bash tests/bin/phpcs.sh

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="unit-tests/Bootstrap.php"
bootstrap="tests/Bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
@ -11,10 +11,10 @@
>
<testsuites>
<testsuite name="WooCommerce REST API Test Suite">
<directory suffix=".php">./unit-tests/Tests</directory>
<directory suffix=".php">./tests/Tests</directory>
</testsuite>
<testsuite name="v4">
<directory suffix=".php">./unit-tests/Tests/Version4</directory>
<directory suffix=".php">./tests/Tests/Version4</directory>
</testsuite>
</testsuites>
</phpunit>

View File

@ -21,14 +21,14 @@ class Bootstrap {
protected $wp_tests_dir;
/**
* unit-tests directory.
* Tests directory.
*
* @var string
*/
protected $tests_dir;
/**
* WC Core unit-tests directory.
* WC Core unit tests directory.
*
* @var string
*/