X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FInitCommandTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FInitCommandTest.php;h=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=d8b9fa0b37abbab509025b640875dfc722a62023;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/drush/drush/tests/InitCommandTest.php b/vendor/drush/drush/tests/InitCommandTest.php deleted file mode 100644 index d8b9fa0b3..000000000 --- a/vendor/drush/drush/tests/InitCommandTest.php +++ /dev/null @@ -1,36 +0,0 @@ -drush('core-init', [], ['add-path' => true, 'yes' => null, 'no-ansi' => null]); - $logOutput = $this->getErrorOutput(); - // First test to ensure that the command claimed to have made the expected progress - $this->assertContains("Copied Drush bash customizations", $logOutput); - $this->assertContains("Updated bash configuration file", $logOutput); - - // Next we test to see if there is evidence that those operations worked. - $home = getenv("HOME"); - $this->assertFileExists("$home/.drush/drush.yml"); - $this->assertFileExists("$home/.drush/drush.bashrc"); - $this->assertFileExists("$home/.bashrc"); - - // Check to see if the .bashrc file sources our drush.bashrc file, - // and whether it adds the path to self::getDrush() to the $PATH - $bashrc_contents = file_get_contents("$home/.bashrc"); - $this->assertContains('drush.bashrc', $bashrc_contents); - - $this->assertContains(realpath(dirname(self::getDrush())), $bashrc_contents); - } -}