public function TestFileTransfer::createDirectoryJailed in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::createDirectoryJailed()
- 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\FileTransferCode
public function createDirectoryJailed($directory) {
$this->connection
->run("mkdir {$directory}");
}