Skip to content

Commit

Permalink
fix annoying init message
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Nov 18, 2023
1 parent 4400489 commit 2acd48d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/console/PestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function actionInit() {
* Do the install
*/
protected function runInit() {
if (file_exists(CRAFT_BASE_PATH . '/phpunit.xml') && !$this->force) {
echo 'A phpunit.xml file already exists in this project. If you want to replace the existing testing infrastructure re-run this command with the `--force` flag.'."\n";
if (file_exists(CRAFT_BASE_PATH . '/phpunit.xml')) {
return;
}

if (!is_dir(CRAFT_BASE_PATH . '/tests')) {
Expand Down

0 comments on commit 2acd48d

Please sign in to comment.