diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-14 19:31:32 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-14 19:31:32 +0000 |
commit | d76ec8f1d0c97ddbb67081bf6ed302e160ef879c (patch) | |
tree | f4e767df57583e117aa4eabf3ca21c2ac96f35e5 /modules/simpletest/tests/filetransfer.test | |
parent | 1256813ae5203792963310c2834dc2d1f7b85315 (diff) | |
download | brdo-d76ec8f1d0c97ddbb67081bf6ed302e160ef879c.tar.gz brdo-d76ec8f1d0c97ddbb67081bf6ed302e160ef879c.tar.bz2 |
#395472 follow-up by catch, boombatower, and jrchamp: Remove failing test to make way for testing suite 2.0.
Diffstat (limited to 'modules/simpletest/tests/filetransfer.test')
-rw-r--r-- | modules/simpletest/tests/filetransfer.test | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/modules/simpletest/tests/filetransfer.test b/modules/simpletest/tests/filetransfer.test index 0ff1d5075..4320c1d2a 100644 --- a/modules/simpletest/tests/filetransfer.test +++ b/modules/simpletest/tests/filetransfer.test @@ -17,6 +17,7 @@ class FileTranferTest extends DrupalWebTestCase { } function setUp() { + parent::setUp(); $this->testConnection = TestFileTransfer::factory(DRUPAL_ROOT, array('hostname' => $this->hostname, 'username' => $this->username, 'password' => $this->password, 'port' => $this->port)); } @@ -86,45 +87,6 @@ class FileTranferTest extends DrupalWebTestCase { } $this->assertTrue($gotit, 'Was able to copy a directory inside of the jailed area'); } - - function testCopyDirectory() { - $directory = $this->_buildFakeModule(); - $drupal_root = DRUPAL_ROOT; - - $this->testConnection->shouldIsDirectoryReturnTrue = TRUE; - $this->testConnection->copyDirectory($directory, "{$drupal_root}/sites/all/modules"); - $expected_commands = array( - "mkdir {$drupal_root}/sites/all/modules/fake", - "copyFile {$directory}/fake.info {$drupal_root}/sites/all/modules/fake/fake.info", - "copyFile {$directory}/fake.module {$drupal_root}/sites/all/modules/fake/fake.module", - "mkdir {$drupal_root}/sites/all/modules/fake/inc", - "copyFile {$directory}/inc/fake.inc {$drupal_root}/sites/all/modules/fake/inc/fake.inc", - "mkdir {$drupal_root}/sites/all/modules/fake/theme", - "copyFile {$directory}/theme/fake.tpl.php {$drupal_root}/sites/all/modules/fake/theme/fake.tpl.php", - ); - - $received_commands = $this->testConnection->connection->flushCommands(); - $this->assertEqual($received_commands, $expected_commands, 'Expected copy files operations made to sites/all/modules'); - - $this->testConnection->shouldIsDirectoryReturnTrue = FALSE; - $this->testConnection->copyDirectory($directory, "{$drupal_root}/sites/all/modules/fake"); - $expected_commands = array( - "mkdir {$drupal_root}/sites/all/modules/fake", - "copyFile {$directory}/fake.info {$drupal_root}/sites/all/modules/fake/fake.info", - "copyFile {$directory}/fake.module {$drupal_root}/sites/all/modules/fake/fake.module", - "mkdir {$drupal_root}/sites/all/modules/fake/inc", - "copyFile {$directory}/inc/fake.inc {$drupal_root}/sites/all/modules/fake/inc/fake.inc", - "mkdir {$drupal_root}/sites/all/modules/fake/theme", - "copyFile {$directory}/theme/fake.tpl.php {$drupal_root}/sites/all/modules/fake/theme/fake.tpl.php", - ); - - $received_commands = $this->testConnection->connection->flushCommands(); - dd($expected_commands); - dd($received_commands); - $this->assertEqual($received_commands, $expected_commands, 'Expected copy files operations made to sites/all/modules/fake'); - - - } } /** |