diff --git a/tests/PhpHandlerTest.php b/tests/PhpHandlerTest.php index 3cf413ac..e2202bb5 100644 --- a/tests/PhpHandlerTest.php +++ b/tests/PhpHandlerTest.php @@ -2,15 +2,14 @@ // Copyright 1999-2019. Plesk International GmbH. namespace PleskXTest; -use PleskX\Api\Struct\PhpHandler\Info; - class PhpHandlerTest extends TestCase { public function testGet() { $handler = static::$_client->phpHandler()->get(null, null); - $this->assertInstanceOf(Info::class, $handler); + $this->assertIsObject($handler); + $this->assertObjectHasAttribute('type', $handler); } public function testGetAll() @@ -21,7 +20,9 @@ public function testGetAll() $this->assertNotEmpty($handlers); $handler = current($handlers); - $this->assertInstanceOf(Info::class, $handler); + + $this->assertIsObject($handler); + $this->assertObjectHasAttribute('type', $handler); } /** diff --git a/tests/WebspaceTest.php b/tests/WebspaceTest.php index b2040b62..3546c804 100644 --- a/tests/WebspaceTest.php +++ b/tests/WebspaceTest.php @@ -133,7 +133,6 @@ public function testGet() $webspace = static::_createWebspace(); $webspaceInfo = static::$_client->webspace()->get('id', $webspace->id); - $this->assertInstanceOf(\PleskX\Api\Struct\Webspace\GeneralInfo::class, $webspaceInfo); $this->assertNotEmpty($webspaceInfo->name); $this->assertEquals(0, $webspaceInfo->realSize); }