function MockTestConnection::run

Same name in other branches
  1. 7.x modules/simpletest/tests/filetransfer.test \MockTestConnection::run()
  2. 9 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection::run()
  3. 10 core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection::run()
  4. 11.x core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection::run()

File

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

Class

MockTestConnection
Mock connection object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

public function run($cmd) {
    $this->commandsRun[] = $cmd;
}

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