You are here

class MockTestConnection in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection

Mock connection object for test case.

Hierarchy

Expanded class hierarchy of MockTestConnection

File

core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php, line 8

Namespace

Drupal\Tests\system\Functional\FileTransfer
View 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