Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/PhpHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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);
}

/**
Expand Down
1 change: 0 additions & 1 deletion tests/WebspaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down