You are here

protected function TestFileTransfer::removeDirectoryJailed 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::removeDirectoryJailed()

Removes a directory.

Parameters

string $directory: The directory to be removed.

Overrides FileTransfer::removeDirectoryJailed

File

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

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\system\Tests\FileTransfer

Code

protected function removeDirectoryJailed($directory) {
  $this->connection
    ->run("rmdir {$directory}");
}