From de55232142b1d9a573950021855b6411c21ca3f0 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Mon, 25 Sep 2017 16:00:12 +0200 Subject: [PATCH] Remove standalone script test. --- tests/coreTest.php | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/tests/coreTest.php b/tests/coreTest.php index 6fd82ae55e..183aaa716e 100644 --- a/tests/coreTest.php +++ b/tests/coreTest.php @@ -17,35 +17,6 @@ function setUp() { } } - /** - * Test standalone php-script scripts. Assure that script args and options work. - */ - public function testStandaloneScript() { - $this->markTestSkipped('Standalone scripts not implemented yet.'); - if ($this->is_windows()) { - $this->markTestSkipped('Standalone scripts not currently available on Windows.'); - } - - $this->drush('version', array(), array('field' => 'drush-version')); - $standard = $this->getOutput(); - - // Write out a hellounish.script into the sandbox. The correct /path/to/drush - // is in the shebang line. - $filename = 'hellounish.script'; - $data = '#!/usr/bin/env [PATH-TO-DRUSH] - -$arg = drush_shift(); -drush_invoke("version", $arg); -'; - $data = str_replace('[PATH-TO-DRUSH]', self::getDrush(), $data); - $script = self::getSandbox() . '/' . $filename; - file_put_contents($script, $data); - chmod($script, 0755); - $this->execute("$script drush_version --pipe"); - $standalone = $this->getOutput(); - $this->assertEquals($standard, $standalone); - } - function testDrupalDirectory() { $root = $this->webroot(); $sitewide = $this->drupalSitewideDirectory();