From 95a828a3416c9f4562e38d029a05bc5f998f07ee Mon Sep 17 00:00:00 2001 From: xavren Date: Wed, 2 Nov 2016 17:08:54 +0100 Subject: [PATCH] test override states --- .../winzouStateMachineExtensionSpec.php | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/spec/winzou/Bundle/StateMachineBundle/DependencyInjection/winzouStateMachineExtensionSpec.php b/spec/winzou/Bundle/StateMachineBundle/DependencyInjection/winzouStateMachineExtensionSpec.php index 04a3e3c..401b303 100644 --- a/spec/winzou/Bundle/StateMachineBundle/DependencyInjection/winzouStateMachineExtensionSpec.php +++ b/spec/winzou/Bundle/StateMachineBundle/DependencyInjection/winzouStateMachineExtensionSpec.php @@ -53,7 +53,16 @@ class winzouStateMachineExtensionSpec extends ObjectBehavior 'states' => array( 'state20' ) - ) + ), + 'graph3' => array( + 'class' => 'Dummy', + 'states' => array( + 'state1', + 'index' => 'state2', + 'state3' => null, + 'state4' => winzouStateMachineExtension::CFG_STATE_DISABLE + ), + ), ), array( 'graph1' => array( @@ -68,6 +77,12 @@ class winzouStateMachineExtensionSpec extends ObjectBehavior ) ) ) + ), + 'graph3' => array( + 'class' => 'Dummy', + 'states' => array( + 'state1', + ), ) ) ); @@ -105,6 +120,12 @@ class winzouStateMachineExtensionSpec extends ObjectBehavior 'states' => array( 'state20' ) + ), + 'graph3' => array( + 'class' => 'Dummy', + 'states' => array( + 'state1' + ) ) );