Unverified Commit 3c692541 authored by alexpott's avatar alexpott
Browse files

Issue #3106455 by hash6, Hardik_Patel_12, longwave, alexpott, xjm: Undefined...

Issue #3106455 by hash6, Hardik_Patel_12, longwave, alexpott, xjm: Undefined variable used in /core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php
parent 221ba657
......@@ -3,7 +3,6 @@
namespace Drupal\Tests\system\Functional\FileTransfer;
use Drupal\Core\FileTransfer\FileTransfer;
use Drupal\Core\FileTransfer\FileTransferException;
/**
* Mock FileTransfer object for test case.
......@@ -47,9 +46,7 @@ public function createDirectoryJailed($directory) {
}
public function removeFileJailed($destination) {
if (!ftp_delete($this->connection, $item)) {
throw new FileTransferException('Unable to remove the file @file.', NULL, ['@file' => $item]);
}
$this->connection->run("rm $destination");
}
public function isDirectory($path) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment