Unverified Commit 6925f752 authored by Alex Pott's avatar Alex Pott
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

(cherry picked from commit 3c692541)
parent bfa10df9
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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) {