You are here

protected function TestFileTransfer::removeDirectoryJailed in Drupal 10

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

Removes a directory.

Parameters

string $directory: The directory to be removed.

Overrides FileTransfer::removeDirectoryJailed

File

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

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

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