function drushScriptCase::remove_site_local_drush

8.0.x drushScriptTest.php drushScriptCase::remove_site_local_drush($drush_base)
master drushScriptTest.php drushScriptCase::remove_site_local_drush($drush_base)
1 call to drushScriptCase::remove_site_local_drush()

File

tests/drushScriptTest.php, line 101

Namespace

Unish

Class

drushScriptCase
Tests for the 'drush' script itself

Code

function remove_site_local_drush($drush_base) {
  // Get rid of the symlink and site-local Drush we created
  unish_file_delete_recursive($this->webroot() . '/' . $drush_base . '/drush/drush');
  unlink($this->webroot() . '/' . $drush_base . '/bin/drush');
  if (file_exists($this->webroot() . '/drush.wrapper')) {
    unlink($this->webroot() . '/drush.wrapper');
  }
}