function TestClient::doRequest
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ Tests/ DrupalMinkClientTest.php, line 90
Class
- TestClient
- Special client that can return a given response on the first doRequest().
Namespace
Drupal\BuildTests\Framework\TestsCode
protected function doRequest($request) {
if (NULL === $this->nextResponse) {
return new Response();
}
$response = $this->nextResponse;
$this->nextResponse = NULL;
return $response;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.