function TestFileTransfer::copyFileJailed

Same name in other branches
  1. 7.x modules/simpletest/tests/filetransfer.test \TestFileTransfer::copyFileJailed()
  2. 9 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::copyFileJailed()
  3. 8.9.x core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::copyFileJailed()
  4. 10 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::copyFileJailed()

Overrides FileTransfer::copyFileJailed

File

core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php, line 53

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

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

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