You are here

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

Test a getAll users call does not overwrite fields.

Return value

void

Throws

\Exception Should not be thrown in this test.

File

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

Class

UsersMockedTest
Class UsersMockedTest.

Namespace

Auth0\Tests\API\Management

Code

public function testThatGetAllUsersFieldsParamDoesNotOverwrite() {
  $api = new MockManagementApi([
    new Response(200, self::$headers),
  ]);
  $api
    ->call()
    ->users()
    ->getAll([
    'fields' => 'field1,field2',
  ], 'field3');
  $query = $api
    ->getHistoryQuery();
  $this
    ->assertEquals('fields=field1,field2', $query);
}