function FileTransferTest::setUp

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php \Drupal\Tests\system\Functional\FileTransfer\FileTransferTest::setUp()
  2. 10 core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php \Drupal\Tests\system\Functional\FileTransfer\FileTransferTest::setUp()
  3. 11.x core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php \Drupal\Tests\system\Functional\FileTransfer\FileTransferTest::setUp()
  4. 11.x core/modules/system/tests/src/Unit/FileTransfer/FileTransferTest.php \Drupal\Tests\system\Unit\FileTransfer\FileTransferTest::setUp()
  5. 10 core/modules/system/tests/src/Unit/FileTransfer/FileTransferTest.php \Drupal\Tests\system\Unit\FileTransfer\FileTransferTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php, line 26

Class

FileTransferTest
Tests that the jail is respected and that protocols using recursive file move operations work.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

protected function setUp() {
    parent::setUp();
    $this->testConnection = TestFileTransfer::factory($this->root, [
        'hostname' => $this->hostname,
        'username' => $this->username,
        'password' => $this->password,
        'port' => $this->port,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.