File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,18 @@ public function testDefaultDrushConfigData(): void {
25
25
$ drushConfig ->set ("options.root " , $ drupal_root );
26
26
$ drushConfig ->set ("drush.vendor-dir " , $ project_root . "/vendor " );
27
27
$ drushConfig ->set ("options.ansi " , TRUE );
28
+ $ drushConfig ->set ('drush.uri ' , '/var/www/html/acms.prod/vendor/bin ' );
28
29
$ drushConfig ->set ("runtime.drush-script " , $ project_root . "/vendor/bin/drush " );
29
30
30
31
$ default_drush_config = new DefaultDrushConfig ($ drushConfig );
31
32
$ actual = $ default_drush_config ->export ();
32
33
$ this ->assertEquals ($ actual , [
33
34
"drush " => [
34
35
"alias " => "self " ,
35
- "vendor-dir " => $ project_root . " /vendor " ,
36
+ "uri " => ' /var/www/html/acms.prod /vendor/bin ' ,
36
37
"ansi " => TRUE ,
37
38
"bin " => $ project_root . "/vendor/bin/drush " ,
39
+ "vendor-dir " => $ project_root . "/vendor " ,
38
40
],
39
41
"runtime " => [
40
42
"project " => $ project_root ,
Original file line number Diff line number Diff line change @@ -21,12 +21,13 @@ class ConfigAwareTraitTest extends TestCase {
21
21
*/
22
22
public function testGetConfigValue (): void {
23
23
$ 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 .
25
25
$ 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 " ),
28
28
);
29
29
$ drush_config = new DrushConfig ();
30
+ $ drush_config ->set ('drush.uri ' , '/var/www/html/acms.prod/vendor/bin ' );
30
31
$ drush_config ->set ("runtime.project " , "/var/www/html/acms.prod " );
31
32
$ drush_config ->set ("options.root " , "/var/www/html/acms.prod/docroot " );
32
33
$ drush_config ->set ("drush.vendor-dir " , $ drush_config ->get ("runtime.project " ) . "/vendor " );
You can’t perform that action at this time.
0 commit comments