You are here

public function TestFileTransfer::removeFileJailed in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::removeFileJailed()

Removes a file.

Parameters

string $destination: The destination file to be removed.

Overrides FileTransfer::removeFileJailed

File

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

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

public function removeFileJailed($destination) {
  $this->connection
    ->run("rm {$destination}");
}