diff --git a/src/Handler.php b/src/Handler.php index 154155bc5fe97b1e576e82951c8c46e8884ae5e1..7f36c7f8e8b5f265472956190273c0e8c9fb1390 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -97,19 +97,19 @@ class Handler { protected function defaults() { return [ 'phpcs' => [ - 'script' => 'phpcs --standard=DrupalPractice web/modules/custom/ web/profiles/custom/ web/themes/custom/', + 'script' => 'phpcs --standard=DrupalPractice $(pwd)/web/modules/custom/ $(pwd)/web/profiles/custom/ $(pwd)/web/themes/custom/', 'description' => 'Run PHP Code Sniffer on custom code', ], 'phpunit:test' => [ - 'script' => 'vendor/bin/phpunit --configuration tests/phpunit.xml.dist', + 'script' => 'vendor/bin/phpunit --configuration $(pwd)/tests/phpunit.xml.dist', 'description' => 'Run PHPUnit tests on custom code', ], 'phpunit:list:suites' => [ - 'script' => 'vendor/bin/phpunit --configuration tests/phpunit.xml.dist --list-suites', + 'script' => 'vendor/bin/phpunit --configuration $(pwd)/tests/phpunit.xml.dist --list-suites', 'description' => 'List all PHPUnit test suites for custom code', ], 'phpunit:list:groups' => [ - 'script' => 'vendor/bin/phpunit --configuration tests/phpunit.xml.dist --list-groups', + 'script' => 'vendor/bin/phpunit --configuration $(pwd)/tests/phpunit.xml.dist --list-groups', 'description' => 'List all PHPUnit test groups from custom code', ], ];