You are here

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

File

vendor/auth0/auth0-php/tests/API/Management/LogsTest.php, line 39

Class

LogsTest
Class LogsTest. Tests the Auth0\SDK\API\Management\Logs class.

Namespace

Auth0\Tests\API

Code

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