You are here

function TestFileTransfer::copyFileJailed in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php \Drupal\system\Tests\FileTransfer\TestFileTransfer::copyFileJailed()

Copies a file.

Parameters

string $source: The source file.

string $destination: The destination file.

Overrides FileTransfer::copyFileJailed

File

core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php, line 40
Contains \Drupal\system\Tests\FileTransfer\TestFileTransfer.

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\system\Tests\FileTransfer

Code

function copyFileJailed($source, $destination) {
  $this->connection
    ->run("copyFile {$source} {$destination}");
}