diff --git a/test/Integration/Command/ExecCommandTest.php b/test/Integration/Command/ExecCommandTest.php index f65d59d..8005fe5 100644 --- a/test/Integration/Command/ExecCommandTest.php +++ b/test/Integration/Command/ExecCommandTest.php @@ -104,7 +104,7 @@ public function testWithEmptyDrupal(): void { * @testdox Raises error for non-Drush command with no placeholders. */ public function testNonDrushWithNoPlaceholders(): void { - $process = Process::fromShellCommandline('drall exec -P foo', static::PATH_DRUPAL); + $process = Process::fromShellCommandline('drall exec -P -- foo', static::PATH_DRUPAL); $process->run(); $this->assertOutputEquals( '[error] The command contains no placeholders. Please run it directly without Drall.' . PHP_EOL, @@ -158,7 +158,7 @@ public function testDrushWithUriPlaceholder(): void { */ public function testDrushWithSitePlaceholder(): void { $process = Process::fromShellCommandline( - 'drall exec -P ./vendor/bin/drush -- @@site.local core:status --field=site', + 'drall exec -P -- ./vendor/bin/drush @@site.local core:status --field=site', static::PATH_DRUPAL, ); $process->run(); @@ -206,7 +206,7 @@ public function testDrushWithNoPlaceholders(): void { */ public function testMultipleDrushWithNoPlaceholders(): void { $process = Process::fromShellCommandline( - 'drall exec -P "./vendor/bin/drush st --fields=site; ./vendor/bin/drush st --fields=uri"', + 'drall exec -P -- "./vendor/bin/drush st --fields=site; ./vendor/bin/drush st --fields=uri"', static::PATH_DRUPAL, ); $process->run(); @@ -235,7 +235,7 @@ public function testMultipleDrushWithNoPlaceholders(): void { */ public function testDrushInPath(): void { $process = Process::fromShellCommandline( - 'drall exec -P ls ./vendor/drush/src', + 'drall exec -P -- ls ./vendor/drush/src', static::PATH_DRUPAL, ); $process->run(); @@ -253,7 +253,7 @@ public function testDrushInPath(): void { */ public function testDrushCapitalized(): void { $process = Process::fromShellCommandline( - 'drall exec -P "echo \"Drush status\" && ./vendor/bin/drush st --fields=site"', + 'drall exec -P -- "echo \"Drush status\" && ./vendor/bin/drush st --fields=site"', static::PATH_DRUPAL, ); $process->run(); @@ -282,7 +282,7 @@ public function testDrushCapitalized(): void { */ public function testWithMixedPlaceholders(): void { $process = Process::fromShellCommandline( - 'drall exec -P "./vendor/bin/drush --uri=@@dir st && ./vendor/bin/drush @@site.local st"', + 'drall exec -P -- "./vendor/bin/drush --uri=@@dir st && ./vendor/bin/drush @@site.local st"', static::PATH_DRUPAL, ); $process->run(); @@ -297,7 +297,7 @@ public function testWithMixedPlaceholders(): void { */ public function testWithDirPlaceholder(): void { $process = Process::fromShellCommandline( - 'drall exec -P ls web/sites/@@dir/settings.php', + 'drall exec -P -- ls web/sites/@@dir/settings.php', static::PATH_DRUPAL, ); $process->run();