Loading core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php +1 −4 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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) { Loading Loading
core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php +1 −4 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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) { Loading