function UrlHelperTest::testBuildQuery

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::testBuildQuery()
  2. 10 core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::testBuildQuery()
  3. 11.x 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\Utility

Code

public function testBuildQuery($query, $expected, $message) {
    $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.