mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-02 03:39:35 -05:00
LegacyStorageTest: be strict on natsort and test...
...imported nodes
This commit is contained in:
parent
e385a8cab2
commit
dcba547f8f
2 changed files with 12 additions and 3 deletions
|
|
@ -0,0 +1 @@
|
|||
all = @simple_with-header:top & @simple_without-header:minTwo & @simple_with-header:minTwo
|
||||
|
|
@ -29,10 +29,10 @@ class LegacyStorageTest extends BaseTestCase
|
|||
public function testAllAvailableProcessesAreListed()
|
||||
{
|
||||
$keys = array_keys($this->makeInstance()->listProcesses());
|
||||
sort($keys);
|
||||
$this->assertEquals(
|
||||
array(
|
||||
'broken_wrong-operator',
|
||||
'combined',
|
||||
'simple_with-header',
|
||||
'simple_without-header',
|
||||
),
|
||||
|
|
@ -43,11 +43,11 @@ class LegacyStorageTest extends BaseTestCase
|
|||
public function testHeaderTitlesAreRespectedInProcessList()
|
||||
{
|
||||
$keys = array_values($this->makeInstance()->listProcesses());
|
||||
sort($keys);
|
||||
$this->assertEquals(
|
||||
array(
|
||||
'Simple with header (simple_with-header)',
|
||||
'broken_wrong-operator',
|
||||
'combined',
|
||||
'Simple with header (simple_with-header)',
|
||||
'simple_without-header',
|
||||
),
|
||||
$keys
|
||||
|
|
@ -119,4 +119,12 @@ class LegacyStorageTest extends BaseTestCase
|
|||
$this->makeLoop()
|
||||
);
|
||||
}
|
||||
|
||||
public function testImportedNodesCanBeParsed()
|
||||
{
|
||||
$this->assertInstanceOf(
|
||||
$this->processClass,
|
||||
$this->makeInstance()->loadProcess('combined')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue