X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FpmRequestTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FpmRequestTest.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=af3e6eca0c3801788e8a8788d93a3897d99ddb84;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drush/drush/tests/pmRequestTest.php b/vendor/drush/drush/tests/pmRequestTest.php deleted file mode 100644 index af3e6eca0..000000000 --- a/vendor/drush/drush/tests/pmRequestTest.php +++ /dev/null @@ -1,104 +0,0 @@ -setUpDrupal(1, FALSE); - $uri = key($sites); - $root = $this->webroot(); - - $drupal_version = UNISH_DRUPAL_MAJOR_VERSION; - - // Common options for below commands. - $options = array( - 'root' => $root, - 'uri' => $uri, - 'format' => 'yaml', - ); - - // Tests for core versions. - $is_core = 1; - - $version = ''; - $expected = <<drush('php-eval', array("return pm_parse_version('${version}', ${is_core})"), $options); - $this->assertEquals($expected, $this->getOutput(), 'Core version not provided. Pick version of the bootstrapped site.'); - - $version = '5'; - $expected = <<drush('php-eval', array("return pm_parse_version('${version}', ${is_core})"), $options); - $this->assertEquals($expected, $this->getOutput(), 'Core version provided.'); - - // Tests for non-core versions. - $is_core = 0; - - $version = ''; - $expected = <<drush('php-eval', array("return pm_parse_version('${version}', ${is_core})"), $options); - $this->assertEquals($expected, $this->getOutput(), 'Project version not provided. Pick version of the bootstrapped site.'); - - $version = '1.0'; - $expected = <<drush('php-eval', array("return pm_parse_version('${version}')"), $options); - $this->assertEquals($expected, $this->getOutput()); - - $version = '1.x'; - $expected = <<drush('php-eval', array("return pm_parse_version('${version}')"), $options); - $this->assertEquals($expected, $this->getOutput()); - } -}