public function TestFileTransfer::copyFileJailed in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::copyFileJailed()
- 10 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::copyFileJailed()
Copies a file.
Parameters
string $source: The source file.
string $destination: The destination file.
Overrides FileTransfer::copyFileJailed
File
- core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ TestFileTransfer.php, line 36
Class
- TestFileTransfer
- Mock FileTransfer object for test case.
Namespace
Drupal\Tests\system\Functional\FileTransferCode
public function copyFileJailed($source, $destination) {
$this->connection
->run("copyFile {$source} {$destination}");
}