You are here

protected function TestClient::doRequest in Drupal 8

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\Tests

Code

protected function doRequest($request) {
  if (NULL === $this->nextResponse) {
    return new Response();
  }
  $response = $this->nextResponse;
  $this->nextResponse = NULL;
  return $response;
}