You are here

public function MockTestConnection::flushCommands 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::flushCommands()

File

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

Class

MockTestConnection
Mock connection object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

public function flushCommands() {
  $out = $this->commandsRun;
  $this->commandsRun = [];
  return $out;
}