Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 39a0ce5

Browse files
committed
Fixing testing interact hook.
1 parent 26ee6b9 commit 39a0ce5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/Robo/Commands/BltReleaseCommand.php

-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ protected function generateReleaseNotes($tag, $github_token) {
242242
return $trimmed_partial_changelog;
243243
}
244244

245-
246245
/**
247246
* Ensures that commands exist on local system.
248247
*

src/Robo/Inspector/Inspector.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ public function isPhantomJsConfigured() {
257257
}
258258

259259
public function isPhantomJsRequired() {
260-
$result = $this->executor->execute("grep 'jakoch/phantomjs-installer' composer.json");
260+
$result = $this->executor->execute("grep 'jakoch/phantomjs-installer' composer.json")->run();
261261
return $result->wasSuccessful();
262262
}
263263

264264
public function isPhantomJsScriptConfigured() {
265-
$result = $this->executor->execute("grep installPhantomJS composer.json");
265+
$result = $this->executor->execute("grep installPhantomJS composer.json")->run();
266266

267267
return $result->wasSuccessful();
268268
}

src/Robo/Wizards/TestsWizard.php

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Acquia\Blt\Robo\Wizards;
44

5+
use Robo\Contract\VerbosityThresholdInterface;
6+
57
/**
68
* Class TestsWizard
79
* @package Acquia\Blt\Robo\Wizards
@@ -16,7 +18,10 @@ public function wizardInstallPhantomJsBinary() {
1618
$this->logger->warning("The PhantomJS binary is not present.");
1719
$answer = $this->confirm("Do you want to install it?");
1820
if ($answer) {
19-
$this->executor->execute("composer install-phantom")->run();
21+
$this->executor->execute("composer run-script install-phantomjs")
22+
->printOutput(true)
23+
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
24+
->run();
2025
}
2126
}
2227
}
@@ -27,7 +32,7 @@ public function wizardInstallPhantomJsBinary() {
2732
public function wizardConfigureBehat() {
2833
if (!$this->getInspector()->isBehatConfigured()) {
2934
$this->logger->warning('Behat is not configured properly.');
30-
$confirm = $this->confirm("Do you want re-generate local Behat config at tests/behat/local.yml?");
35+
$confirm = $this->confirm("Do you want re-generate local Behat config at tests/behat/local.yml?", true);
3136
if ($confirm) {
3237
$bin = $this->getConfigValue('composer.bin');
3338
$behat_local_config_file = $this->getConfigValue('repo.root') . "/tests/behat/local.yml";

0 commit comments

Comments
 (0)