function TestFileTransfer::removeFileJailed in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php \Drupal\system\Tests\FileTransfer\TestFileTransfer::removeFileJailed()
Removes a file.
Parameters
string $destination: The destination file to be removed.
Overrides FileTransfer::removeFileJailed
File
- core/
modules/ system/ src/ Tests/ FileTransfer/ TestFileTransfer.php, line 52 - Contains \Drupal\system\Tests\FileTransfer\TestFileTransfer.
Class
- TestFileTransfer
- Mock FileTransfer object for test case.
Namespace
Drupal\system\Tests\FileTransferCode
function removeFileJailed($destination) {
if (!ftp_delete($this->connection, $item)) {
throw new FileTransferException('Unable to remove to file @file.', NULL, array(
'@file' => $item,
));
}
}