You are here

protected function FileTransferTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php \Drupal\Tests\system\Functional\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() : void {
  parent::setUp();
  $this->testConnection = TestFileTransfer::factory($this->root, [
    'hostname' => $this->hostname,
    'username' => $this->username,
    'password' => $this->password,
    'port' => $this->port,
  ]);
}