You are here

class MockTestConnection in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection
  2. 9 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

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\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