From ee977f057652c6af2c2fe8446a9dc0cfa905219f Mon Sep 17 00:00:00 2001 From: oceanapplications Date: Thu, 25 Apr 2024 17:18:22 -0600 Subject: [PATCH] Prevent appending configuration if configuration flag is set --- src/Adapters/Laravel/Commands/TestCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Adapters/Laravel/Commands/TestCommand.php b/src/Adapters/Laravel/Commands/TestCommand.php index 0f80b7e..b21786b 100644 --- a/src/Adapters/Laravel/Commands/TestCommand.php +++ b/src/Adapters/Laravel/Commands/TestCommand.php @@ -223,6 +223,10 @@ protected function phpunitArguments($options) && ! Str::startsWith($option, '--min'); })); + if (!empty(preg_grep('/^--configuration=|-c/', $options))) { + return array_merge($this->commonArguments(), $options); + } + return array_merge($this->commonArguments(), ['--configuration='.$this->getConfigurationFile()], $options); }