public function TestFileTransfer::copyFileJailed in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::copyFileJailed()
- 9 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 52
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}");
}