diff --git a/test/config/modules/businessprocess/processes/combined.conf b/test/config/modules/businessprocess/processes/combined.conf new file mode 100644 index 0000000..3b0fc5d --- /dev/null +++ b/test/config/modules/businessprocess/processes/combined.conf @@ -0,0 +1 @@ +all = @simple_with-header:top & @simple_without-header:minTwo & @simple_with-header:minTwo \ No newline at end of file diff --git a/test/php/library/Businessprocess/Storage/LegacyStorageTest.php b/test/php/library/Businessprocess/Storage/LegacyStorageTest.php index b0254f4..4c5425a 100644 --- a/test/php/library/Businessprocess/Storage/LegacyStorageTest.php +++ b/test/php/library/Businessprocess/Storage/LegacyStorageTest.php @@ -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') + ); + } }