Skip to content

Commit ba0c74b

Browse files
ACMS-4333: Fix failing tests.
1 parent 6ac1a5b commit ba0c74b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tests/src/Functional/Config/DefaultDrushConfigTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,18 @@ public function testDefaultDrushConfigData(): void {
2525
$drushConfig->set("options.root", $drupal_root);
2626
$drushConfig->set("drush.vendor-dir", $project_root . "/vendor");
2727
$drushConfig->set("options.ansi", TRUE);
28+
$drushConfig->set('drush.uri', '/var/www/html/acms.prod/vendor/bin');
2829
$drushConfig->set("runtime.drush-script", $project_root . "/vendor/bin/drush");
2930

3031
$default_drush_config = new DefaultDrushConfig($drushConfig);
3132
$actual = $default_drush_config->export();
3233
$this->assertEquals($actual, [
3334
"drush" => [
3435
"alias" => "self",
35-
"vendor-dir" => $project_root . "/vendor",
36+
"uri" => '/var/www/html/acms.prod/vendor/bin',
3637
"ansi" => TRUE,
3738
"bin" => $project_root . "/vendor/bin/drush",
39+
"vendor-dir" => $project_root . "/vendor",
3840
],
3941
"runtime" => [
4042
"project" => $project_root,

tests/src/unit/Robo/Config/ConfigAwareTraitTest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ class ConfigAwareTraitTest extends TestCase {
2121
*/
2222
public function testGetConfigValue(): void {
2323
$this->config = new DrushConfig();
24-
// Tests when no value exist for the key, then default value must return.
24+
// Tests that default value for key is always set to /bin.
2525
$this->assertEquals(
26-
"/var/www/html/acms.prod/vendor/bin",
27-
$this->getConfigValue("composer.bin", "/var/www/html/acms.prod/vendor/bin"),
26+
"/bin",
27+
$this->getConfigValue("composer.bin"),
2828
);
2929
$drush_config = new DrushConfig();
30+
$drush_config->set('drush.uri', '/var/www/html/acms.prod/vendor/bin');
3031
$drush_config->set("runtime.project", "/var/www/html/acms.prod");
3132
$drush_config->set("options.root", "/var/www/html/acms.prod/docroot");
3233
$drush_config->set("drush.vendor-dir", $drush_config->get("runtime.project") . "/vendor");

0 commit comments

Comments
 (0)