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

UrlHelperTest
Tests Drupal\Component\Utility\UrlHelper.

Namespace

Drupal\Tests\Component\Utility

Code

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.