LegacyStorageTest: be strict on natsort and test...

...imported nodes
This commit is contained in:
Thomas Gelf 2017-01-03 11:05:09 +01:00
parent e385a8cab2
commit dcba547f8f
2 changed files with 12 additions and 3 deletions

View file

@ -0,0 +1 @@
all = @simple_with-header:top & @simple_without-header:minTwo & @simple_with-header:minTwo

View file

@ -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')
);
}
}