HostNodeTest: fix and improve test

This commit is contained in:
Thomas Gelf 2016-11-28 00:54:07 +01:00
parent f09a246392
commit 386326efdf

View file

@ -17,10 +17,18 @@ class HostNodeTest extends BaseTestCase
);
}
public function testReturnsCorrectAlias()
public function testReturnsCorrectIdentifierWhenCastedToString()
{
$this->assertEquals(
'localhost;Hoststatus',
(string) $this->localhost()
);
}
public function testReturnsCorrectAlias()
{
$this->assertEquals(
'localhost',
$this->localhost()->getAlias()
);
}