You are here

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

Creates a directory.

Parameters

string $directory: The directory to be created.

Overrides FileTransfer::createDirectoryJailed

File

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

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\system\Tests\FileTransfer

Code

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