function MockClient::setExpectedResponse

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Test/WebAssertTest.php \Drupal\Tests\Core\Test\MockClient::setExpectedResponse()

File

core/tests/Drupal/Tests/Core/Test/WebAssertTest.php, line 455

Class

MockClient
A mock client.

Namespace

Drupal\Tests\Core\Test

Code

public function setExpectedResponse(Response $response) : void {
    $this->response = $response;
}

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