class TestFileTransfer

Mock FileTransfer object for test case.

Hierarchy

Expanded class hierarchy of TestFileTransfer

File

drupal/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php, line 16
Definition of Drupal\system\Tests\FileTransfer\TestFileTransfer.

Namespace

Drupal\system\Tests\FileTransfer
View source

Members

Namesort descending Modifiers Type Description Overrides
FileTransfer::$hostname protected property The hostname for this file transfer.
FileTransfer::checkPath final protected function Checks that the path is inside the jail and throws an exception if not.
FileTransfer::chmod final public function Changes the permissions of the specified $path (file or directory).
FileTransfer::copyDirectory final public function Copies a directory.
FileTransfer::copyDirectoryJailed protected function Copies a directory. 1
FileTransfer::copyFile final public function Copies a file.
FileTransfer::createDirectory final public function Creates a directory.
FileTransfer::findChroot function Returns the chroot property for this connection.
FileTransfer::fixRemotePath final protected function Returns a modified path suitable for passing to the server.
FileTransfer::getSettingsForm public function Returns a form to collect connection settings credentials. 2
FileTransfer::removeDirectory final public function Removes a directory.
FileTransfer::removeFile final public function Removes a file.
FileTransfer::sanitizePath function Changes backslashes to slashes, also removes a trailing slash.
FileTransfer::setChroot function Sets the chroot and changes the jail to match the correct path scheme.
FileTransfer::__get function Implements the magic __get() method.
TestFileTransfer::$host protected property
TestFileTransfer::$password protected property The password for this file transfer. Overrides FileTransfer::$password
TestFileTransfer::$port protected property The port for this file transfer. Overrides FileTransfer::$port
TestFileTransfer::$shouldIsDirectoryReturnTrue public property This is for testing the CopyRecursive logic.
TestFileTransfer::$username protected property The username for this file transfer. Overrides FileTransfer::$username
TestFileTransfer::chmodJailed function
TestFileTransfer::connect function Connects to the server. Overrides FileTransfer::connect
TestFileTransfer::copyFileJailed function Copies a file. Overrides FileTransfer::copyFileJailed
TestFileTransfer::createDirectoryJailed function Creates a directory. Overrides FileTransfer::createDirectoryJailed
TestFileTransfer::factory static function Defines a factory method for this class. Overrides FileTransfer::factory
TestFileTransfer::isDirectory function Checks if a particular path is a directory. Overrides FileTransfer::isDirectory
TestFileTransfer::isFile function Checks if a particular path is a file (not a directory). Overrides FileTransfer::isFile
TestFileTransfer::removeDirectoryJailed protected function Removes a directory. Overrides FileTransfer::removeDirectoryJailed
TestFileTransfer::removeFileJailed function Removes a file. Overrides FileTransfer::removeFileJailed
TestFileTransfer::__construct function Constructs a Drupal\Core\FileTransfer\FileTransfer object. Overrides FileTransfer::__construct