Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drush commands fail - Symfony Process expects array #256

Open
cboyden-ucb opened this issue Nov 16, 2022 · 1 comment
Open

Drush commands fail - Symfony Process expects array #256

cboyden-ucb opened this issue Nov 16, 2022 · 1 comment

Comments

@cboyden-ucb
Copy link

After upgrading to the Behat Drupal extension 4.2.1, I am seeing test failures due to an exception when running the "drush" command. Behind the scenes, symfony/process was upgraded from v4.4.36 to v6.0.11.

When` I run drush "cc" "views"
# Drupal\DrupalExtension\Context\DrushContext::assertDrushCommandWithArgument()

Type error: Symfony\Component\Process\Process::__construct(): Argument #1 ($command) must be of type array,
string given, called in vendor/drupal/drupal-driver/src/Drupal/Driver/DrushDriver.php on line 417 
(Behat\Testwork\Call\Exception\FatalThrowableError)

Drupal core seems to have fixed this in https://www.drupal.org/project/drupal/issues/3162045 by taking advantage of an addition to symfony/process, using Process::fromShellCommandline instead of Process. This should probably work here too.

@cboyden
Copy link

cboyden commented Nov 16, 2022

This would be fixed by #251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants