You are here

protected function UpdateFetcherTest::setUp in Drupal 8

Overrides UnitTestCase::setUp

File

core/modules/update/tests/src/Unit/UpdateFetcherTest.php, line 25

Class

UpdateFetcherTest
Tests update functionality unrelated to the database.

Namespace

Drupal\Tests\update\Unit

Code

protected function setUp() {
  $config_factory = $this
    ->getConfigFactoryStub([
    'update.settings' => [
      'fetch_url' => 'http://www.example.com',
    ],
  ]);
  $http_client_mock = $this
    ->createMock('\\GuzzleHttp\\ClientInterface');
  $this->updateFetcher = new UpdateFetcher($config_factory, $http_client_mock);
}