Skip to content

Commit

Permalink
Temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
jigarius committed Dec 29, 2024
1 parent eec0996 commit d7f731f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/Integration/Command/ExecCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit d7f731f

Please sign in to comment.