You are here

public function TestFileTransfer::createDirectoryJailed 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::createDirectoryJailed()
  2. 9 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::createDirectoryJailed()

Creates a directory.

Parameters

string $directory: The directory to be created.

Overrides FileTransfer::createDirectoryJailed

File

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

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

public function createDirectoryJailed($directory) {
  $this->connection
    ->run("mkdir {$directory}");
}