1 filetransfer.test TestFileTransfer::removeFileJailed($destination)

Removes a file.

Parameters

$destination: The destination file to be removed.

Overrides FileTransfer::removeFileJailed

File

core/modules/simpletest/tests/filetransfer.test, line 124

Class

TestFileTransfer
Mock FileTransfer object for test case.

Code

function removeFileJailed($destination) {
  if (!ftp_delete($this->connection, $item)) {
    throw new FileTransferException('Unable to remove to file @file.', NULL, array('@file' => $item));
  }
}