You are here

public function ClientFactoryTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 30
Contains \Drupal\Tests\Core\Http\ClientFactoryTest.

Class

ClientFactoryTest
@coversDefaultClass \Drupal\Core\Http\ClientFactory @group Http

Namespace

Drupal\Tests\Core\Http

Code

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