X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FcommandSpecificTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FcommandSpecificTest.php;h=0000000000000000000000000000000000000000;hp=250e259f942c3d68dbeeb308d1aeab233fe79c60;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/tests/commandSpecificTest.php b/vendor/drush/drush/tests/commandSpecificTest.php deleted file mode 100644 index 250e259f9..000000000 --- a/vendor/drush/drush/tests/commandSpecificTest.php +++ /dev/null @@ -1,84 +0,0 @@ - UNISH_SANDBOX, - 'uri' => 'site1.com', - 'source-command-specific' => array( - 'core-rsync' => array( - 'exclude-paths' => 'excluded_by_source', - ), - ), - 'target-command-specific' => array( - 'core-rsync' => array( - 'exclude-paths' => 'excluded_by_target', - ), - ), - 'path-aliases' => array( - '%files' => 'sites/default/files', - ), - ); - $contents = $this->unish_file_aliases($aliases); - $return = file_put_contents($path, $contents); - } - - function testCommandSpecific() { - $options = array( - 'alias-path' => UNISH_SANDBOX, - 'simulate' => NULL, - 'include-vcs' => NULL, - ); - $this->drush('core-rsync', array('/tmp', '@site1'), $options, NULL, NULL, self::EXIT_SUCCESS, '2>&1'); - $output = trim($this->getOutput()); - $this->assertContains('excluded_by_target', $output); - $this->drush('core-rsync', array('@site1', '/tmp'), $options, NULL, NULL, self::EXIT_SUCCESS, '2>&1'); - $output = trim($this->getOutput()); - $this->assertContains('excluded_by_source', $output); - $this->drush('core-rsync', array('@site1', '@site1'), $options, NULL, NULL, self::EXIT_SUCCESS, '2>&1'); - $output = trim($this->getOutput()); - $this->assertContains('excluded_by_target', $output); - // Now do that all again with 'exclude-files' - $options['exclude-files'] = NULL; - $this->drush('core-rsync', array('/tmp', '@site1'), $options, NULL, NULL, self::EXIT_SUCCESS, '2>&1'); - $output = trim($this->getOutput()); - $this->assertContains('sites/default/files', $output); - $this->assertContains('excluded_by_target', $output); - $this->assertNotContains('include-vcs', $output); - $this->assertNotContains('exclude-paths', $output); - $this->assertNotContains('exclude-files-processed', $output); - $this->drush('core-rsync', array('@site1', '/tmp'), $options, NULL, NULL, self::EXIT_SUCCESS, '2>&1'); - $output = trim($this->getOutput()); - $this->assertContains('sites/default/files', $output); -// This one does not work. @see drush_sitealias_evaluate_path -// $this->assertContains('excluded_by_source', $output); - $this->assertNotContains('include-vcs', $output); - $this->assertNotContains('exclude-paths', $output); - $this->assertNotContains('exclude-files-processed', $output); - $this->drush('core-rsync', array('@site1', '@site1'), $options, NULL, NULL, self::EXIT_SUCCESS, '2>&1'); - $output = trim($this->getOutput()); - $this->assertContains('sites/default/files', $output); - $this->assertContains('excluded_by_target', $output); - $this->assertNotContains('include-vcs', $output); - $this->assertNotContains('exclude-paths', $output); - $this->assertNotContains('exclude-files-processed', $output); - } -}