You are here

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

File

vendor/auth0/auth0-php/tests/API/Management/RulesTest.php, line 36

Class

RulesTest
Class RulesTest.

Namespace

Auth0\Tests\API\Management

Code

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