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=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=b5b913d6fa47f96edd3a7647937f56dbb2f1fb6e;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drush/drush/tests/initCommandTest.php b/vendor/drush/drush/tests/initCommandTest.php deleted file mode 100644 index b5b913d6f..000000000 --- a/vendor/drush/drush/tests/initCommandTest.php +++ /dev/null @@ -1,34 +0,0 @@ -drush('core-init', array(), array('backend' => NULL, 'add-path' => TRUE, 'yes' => NULL)); - $parsed = $this->parse_backend_output($this->getOutput()); - // First test to ensure that the command claimed to have made the expected progress - $this->assertLogHasMessage($parsed['log'], "Copied example Drush configuration file", 'ok'); - $this->assertLogHasMessage($parsed['log'], "Copied example Drush bash configuration file", 'ok'); - $this->assertLogHasMessage($parsed['log'], "Updated bash configuration file", 'ok'); - // Next we will test to see if there is evidence that those - // operations worked. - $home = getenv("HOME"); - $this->assertFileExists("$home/.drush/drushrc.php"); - $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 UNISH_DRUSH to the $PATH - $bashrc_contents = file_get_contents("$home/.bashrc"); - $this->assertContains('drush.bashrc', $bashrc_contents); - $this->assertContains(dirname(UNISH_DRUSH), $bashrc_contents); - } -}