You are here

public function UsersMockedTest::testThatGetAllUsersDoesNotOverwritePageValue in Auth0 Single Sign On 8.2

Test that the page value passed in extra params is not overwritten by the function param.

Return value

void

Throws

\Exception Should not be thrown in this test.

File

vendor/auth0/auth0-php/tests/API/Management/UsersMockedTest.php, line 371

Class

UsersMockedTest
Class UsersMockedTest.

Namespace

Auth0\Tests\API\Management

Code

public function testThatGetAllUsersDoesNotOverwritePageValue() {
  $api = new MockManagementApi([
    new Response(200, self::$headers),
  ]);
  $api
    ->call()
    ->users()
    ->getAll([
    'page' => 11,
  ], [], null, 22);
  $query = $api
    ->getHistoryQuery();
  $this
    ->assertContains('page=11', $query);
}