You are here

public function RequestBuilderTest::testThatMultipleUrlParamsAreAdded in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/tests/API/Helpers/RequestBuilderTest.php, line 117

Class

RequestBuilderTest
Class RequestBuilderTest Tests the Auth0\SDK\API\Helpers\RequestBuilder class.

Namespace

Auth0\Tests\API

Code

public function testThatMultipleUrlParamsAreAdded() {
  $builder = self::getUrlBuilder();
  $builder
    ->withParam('param1', 'value1');
  $builder
    ->withParam('param2', null);
  $builder
    ->withParam('param3', 'value3');
  $this
    ->assertEquals('?param1=value1&param3=value3', $builder
    ->getParams());
}