public function UpdateFetcherTest::testUpdateBuildFetchUrl 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::testUpdateBuildFetchUrl()
Tests that buildFetchUrl() builds the URL correctly.
@dataProvider providerTestUpdateBuildFetchUrl
Parameters
array $project: A keyed array of project information matching results from \Drupal\Update\UpdateManager::getProjects().
string $site_key: A string to mimic an anonymous site key hash.
string $expected: The expected url returned from UpdateFetcher::buildFetchUrl()
See also
\Drupal\update\UpdateFetcher::buildFetchUrl()
File
- core/
modules/ update/ tests/ src/ Unit/ UpdateFetcherTest.php, line 55 - Contains \Drupal\Tests\update\Unit\UpdateFetcherTest.
Class
- UpdateFetcherTest
- Tests update functionality unrelated to the database.
Namespace
Drupal\Tests\update\UnitCode
public function testUpdateBuildFetchUrl(array $project, $site_key, $expected) {
$url = $this->updateFetcher
->buildFetchUrl($project, $site_key);
$this
->assertEquals($url, $expected);
}