mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
HostNodeTest: fix and improve test
This commit is contained in:
parent
f09a246392
commit
386326efdf
1 changed files with 9 additions and 1 deletions
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue