function ClientFactoryTest::setUp

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::setUp()
  2. 8.9.x core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php, line 27

Class

ClientFactoryTest
@coversDefaultClass \Drupal\Core\Http\ClientFactory[[api-linebreak]] @group Http

Namespace

Drupal\Tests\Core\Http

Code

protected function setUp() : void {
  parent::setUp();
  $stack = $this->getMockBuilder('GuzzleHttp\\HandlerStack')
    ->disableOriginalConstructor()
    ->getMock();
  $this->factory = new ClientFactory($stack);
}

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