function ClientFactoryTest::setUp
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::setUp()
- 9 core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php \Drupal\Tests\Core\Http\ClientFactoryTest::setUp()
- 8.9.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 31
Class
Namespace
Drupal\Tests\Core\HttpCode
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.