MockTestConnection.php
Same filename in other branches
Namespace
Drupal\Tests\system\Functional\FileTransferFile
-
core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ MockTestConnection.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\system\Functional\FileTransfer;
/**
* Mock connection object for test case.
*/
class MockTestConnection {
protected $commandsRun = [];
public $connectionString;
public function run($cmd) {
$this->commandsRun[] = $cmd;
}
public function flushCommands() {
$out = $this->commandsRun;
$this->commandsRun = [];
return $out;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MockTestConnection | Mock connection object for test case. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.