public function pmDownloadCase::testPackageHandler

8.0.x pmDownloadTest.php public pmDownloadCase::testPackageHandler()
6.x pmDownloadTest.php public pmDownloadCase::testPackageHandler()
7.x pmDownloadTest.php public pmDownloadCase::testPackageHandler()
4.x pmDownloadTest.php public pmDownloadCase::testPackageHandler()
5.x pmDownloadTest.php public pmDownloadCase::testPackageHandler()
master pmDownloadTest.php public pmDownloadCase::testPackageHandler()

File

tests/pmDownloadTest.php, line 100

Class

pmDownloadCase
pm-download testing

Code

public function testPackageHandler() {
  $options = array(
    'cache' => NULL,
    'package-handler' => 'git_drupalorg',
    'yes' => NULL,
  );
  $this->drush('pm-download', array('devel'), $options);
  $this->assertFileExists(UNISH_SANDBOX . '/devel/README.txt');
  $this->assertFileExists(UNISH_SANDBOX . '/devel/.git');
}