public function UrlHelperTest::testBuildQuery in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::testBuildQuery()
Tests query building.
@dataProvider providerTestBuildQuery @covers ::buildQuery
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 43
Class
- UrlHelperTest
- @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
public function testBuildQuery($query, $expected, $message) {
$this
->assertEquals(UrlHelper::buildQuery($query), $expected, $message);
}