Skip to content

Commit

Permalink
move test dir for php
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Jun 4, 2022
1 parent a6b8079 commit 120d131
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"autoload": {
"psr-4": {
"HAMWORKS\\WP\\Schedule_Terms\\": "./includes",
"HAMWORKS\\WP\\Schedule_Terms\\Tests\\": "./tests"
"HAMWORKS\\WP\\Schedule_Terms\\Tests\\": "./tests/php"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<phpunit
bootstrap="tests/bootstrap.php"
bootstrap="tests/php/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/bootstrap.php → tests/php/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

// Require composer dependencies.
require_once dirname( __DIR__ ) . '/vendor/autoload.php';
require_once dirname( dirname( __DIR__ ) ) . '/vendor/autoload.php';

$_tests_dir = getenv( 'WP_TESTS_DIR' );

Expand All @@ -26,7 +26,7 @@

// See if we're installed inside an existing WP dev instance.
if ( ! $_tests_dir ) {
$_try_tests_dir = __DIR__ . '/../../../../../tests/phpunit';
$_try_tests_dir = __DIR__ . '/../../../../../../tests/phpunit';
if ( file_exists( $_try_tests_dir . '/includes/functions.php' ) ) {
$_tests_dir = $_try_tests_dir;
}
Expand Down

0 comments on commit 120d131

Please sign in to comment.