function ClientFactoryTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Http/ ClientFactoryTest.php, line 25
Class
- ClientFactoryTest
- @coversDefaultClass \Drupal\Core\Http\ClientFactory[[api-linebreak]] @group Http
Namespace
Drupal\Tests\Core\HttpCode
protected function setUp() : void {
$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.