function MockTestConnection::flushCommands

Same name in other branches
  1. 7.x modules/simpletest/tests/filetransfer.test \MockTestConnection::flushCommands()
  2. 8.9.x core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection::flushCommands()
  3. 10 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection::flushCommands()
  4. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.