function UrlHelperTest::testBuildQuery
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::testBuildQuery()
- 8.9.x core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::testBuildQuery()
- 10 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 45
Class
- UrlHelperTest
- @group Utility
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.