Security update for Core, with self-updated composer
[yaffs-website] / vendor / drush / drush / tests / generateMakeTest.php
index b27042f2b3f3ef666c5806965b360640c8d38809..3b82d9bad4f0d3153353ef50bcac2e34a14610aa 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 namespace Unish;
+use Webmozart\PathUtil\Path;
 
 /**
  * Generate makefile tests
@@ -78,7 +79,7 @@ EOD;
     $this->assertEquals($expected, $actual);
 
     // Download a module to a 'contrib' directory to test the subdir feature
-    mkdir($this->webroot() + '/sites/all/modules/contrib');
+    $this->mkdir(Path::join($this->webroot(). '/sites/all/modules/contrib'));
     $this->drush('pm-download', array('libraries'), array('destination' => 'sites/all/modules/contrib') + $options);
     $this->drush('pm-enable', array('libraries'), $options);
     $makefile = UNISH_SANDBOX . '/dev.make.yml';