X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FgenerateMakeTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FgenerateMakeTest.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=3b82d9bad4f0d3153353ef50bcac2e34a14610aa;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drush/drush/tests/generateMakeTest.php b/vendor/drush/drush/tests/generateMakeTest.php deleted file mode 100644 index 3b82d9bad..000000000 --- a/vendor/drush/drush/tests/generateMakeTest.php +++ /dev/null @@ -1,127 +0,0 @@ -_testGenerateMake('devel', 'bootstrap'); - } - - function testGenerateMakeOmega() { - # TODO: Don't skip this test by default once the underlying issue is resolved. - # See: https://github.com/drush-ops/drush/issues/2030 - $run_omega_make_test = getenv("DRUSH_TEST_MAKE_OMEGA"); - if ($run_omega_make_test) { - return $this->_testGenerateMake('devel', 'omega'); - } - else { - $this->markTestSkipped('Set `DRUSH_TEST_MAKE_OMEGA=1`, in order to run this test. See: https://github.com/drush-ops/drush/issues/2028'); - } - } - - function _testGenerateMake($module, $theme) { - $sites = $this->setUpDrupal(1, TRUE); - $major_version = UNISH_DRUPAL_MAJOR_VERSION . '.x'; - - $options = array( - 'yes' => NULL, - 'pipe' => NULL, - 'root' => $this->webroot(), - 'uri' => key($sites), - 'cache' => NULL, - 'strict' => 0, // Don't validate options - ); - // Omega requires these core modules. - $this->drush('pm-enable', array('block', 'search', 'help'), $options); - $this->drush('pm-download', array($theme, $module), $options); - $this->drush('pm-enable', array($theme, $module), $options); - - $makefile = UNISH_SANDBOX . '/dev.make.yml'; - - // First generate a simple makefile with no version information - $this->drush('generate-makefile', array($makefile), array('exclude-versions' => NULL) + $options); - $expected = <<assertEquals($expected, $actual); - - // Next generate a simple makefile with no version information in .ini format - $makefile = UNISH_SANDBOX . '/dev.make'; - $this->drush('generate-makefile', array($makefile), array('exclude-versions' => NULL, 'format' => 'ini') + $options); - $expected = <<assertEquals($expected, $actual); - - // Download a module to a 'contrib' directory to test the subdir feature - $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'; - $this->drush('generate-makefile', array($makefile), array('exclude-versions' => NULL) + $options); - $expected = <<assertEquals($expected, $actual); - - // Again in .ini format. - $makefile = UNISH_SANDBOX . '/dev.make'; - $this->drush('generate-makefile', array($makefile), array('exclude-versions' => NULL, 'format' => 'ini') + $options); - $expected = <<assertEquals($expected, $actual); - - // Generate a makefile with version numbers (in .ini format). - $this->drush('generate-makefile', array($makefile), array('format' => 'ini') + $options); - $actual = file_get_contents($makefile); - $this->assertContains('projects[' . $module . '][version] = "', $actual); - } -}