You are here

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

Test the the per_page value passed in the 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 413

Class

UsersMockedTest
Class UsersMockedTest.

Namespace

Auth0\Tests\API\Management

Code

public function testThatGetAllUsersDoesNotOverwritePerPageValue() {
  $api = new MockManagementApi([
    new Response(200, self::$headers),
  ]);
  $api
    ->call()
    ->users()
    ->getAll([
    'per_page' => 8,
  ], [], null, null, 9);
  $query = $api
    ->getHistoryQuery();
  $this
    ->assertContains('per_page=8', $query);
}