function UrlHelperTest::testBuildQuery
Tests query building.
@legacy-covers ::buildQuery
Attributes
#[DataProvider('providerTestBuildQuery')]
Parameters
array $query: The array of query parameters.
string $expected: The expected query string.
string $message: The assertion message.
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php, line 52
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function testBuildQuery($query, $expected, $message) : void {
$this->assertEquals(UrlHelper::buildQuery($query), $expected, $message);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.