From 386326efdf78606005d747d6bb650c9abe6e6e25 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 28 Nov 2016 00:54:07 +0100 Subject: [PATCH] HostNodeTest: fix and improve test --- test/php/library/Businessprocess/HostNodeTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/php/library/Businessprocess/HostNodeTest.php b/test/php/library/Businessprocess/HostNodeTest.php index 7db45db..dd1c01a 100644 --- a/test/php/library/Businessprocess/HostNodeTest.php +++ b/test/php/library/Businessprocess/HostNodeTest.php @@ -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() ); }