class MockTestConnection in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection
- 10 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection
Mock connection object for test case.
Hierarchy
- class \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection
Expanded class hierarchy of MockTestConnection
File
- core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ MockTestConnection.php, line 8
Namespace
Drupal\Tests\system\Functional\FileTransferView source
class MockTestConnection {
protected $commandsRun = [];
public $connectionString;
public function run($cmd) {
$this->commandsRun[] = $cmd;
}
public function flushCommands() {
$out = $this->commandsRun;
$this->commandsRun = [];
return $out;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MockTestConnection:: |
protected | property | ||
MockTestConnection:: |
public | property | ||
MockTestConnection:: |
public | function | ||
MockTestConnection:: |
public | function |