You are here

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

File

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

Class

UsersMockedTest
Class UsersMockedTest.

Namespace

Auth0\Tests\API\Management

Code

public function testThatMethodAndPropertyReturnSameClass() {
  $api = new Management(uniqid(), uniqid());
  $this
    ->assertInstanceOf(Management\Users::class, $api->users);
  $this
    ->assertInstanceOf(Management\Users::class, $api
    ->users());
  $api->users = null;
  $this
    ->assertInstanceOf(Management\Users::class, $api
    ->users());
}