Mercurial > hg > isophonics-drupal-site
comparison core/modules/update/tests/src/Unit/UpdateFetcherTest.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
26 /** | 26 /** |
27 * {@inheritdoc} | 27 * {@inheritdoc} |
28 */ | 28 */ |
29 protected function setUp() { | 29 protected function setUp() { |
30 $config_factory = $this->getConfigFactoryStub(['update.settings' => ['fetch_url' => 'http://www.example.com']]); | 30 $config_factory = $this->getConfigFactoryStub(['update.settings' => ['fetch_url' => 'http://www.example.com']]); |
31 $http_client_mock = $this->getMock('\GuzzleHttp\ClientInterface'); | 31 $http_client_mock = $this->createMock('\GuzzleHttp\ClientInterface'); |
32 $this->updateFetcher = new UpdateFetcher($config_factory, $http_client_mock); | 32 $this->updateFetcher = new UpdateFetcher($config_factory, $http_client_mock); |
33 } | 33 } |
34 | 34 |
35 /** | 35 /** |
36 * Tests that buildFetchUrl() builds the URL correctly. | 36 * Tests that buildFetchUrl() builds the URL correctly. |