class MockTestConnection in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection
- 9 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
1 string reference to 'MockTestConnection'
- drupal7.php in core/modules/ migrate_drupal/ tests/ fixtures/ drupal7.php 
- A database agnostic dump for testing purposes.
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 | 
