protected function UpdateFetcherTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/tests/src/Unit/UpdateFetcherTest.php \Drupal\Tests\update\Unit\UpdateFetcherTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ update/ tests/ src/ Unit/ UpdateFetcherTest.php, line 34 - Contains \Drupal\Tests\update\Unit\UpdateFetcherTest.
Class
- UpdateFetcherTest
- Tests update functionality unrelated to the database.
Namespace
Drupal\Tests\update\UnitCode
protected function setUp() {
$config_factory = $this
->getConfigFactoryStub(array(
'update.settings' => array(
'fetch_url' => 'http://www.example.com',
),
));
$http_client_mock = $this
->getMock('\\GuzzleHttp\\ClientInterface');
$this->updateFetcher = new UpdateFetcher($config_factory, $http_client_mock);
}