@@ -20,7 +20,7 @@ class FormFlowBcMethodsTest extends UnitTestCase {
2020 private $ deprecatedMessage = 'Method Craue\FormFlowBundle\Form\FormFlow::%s is deprecated since version 2.0. Use method %s instead. ' ;
2121
2222 public function testBcMethodDelegation_getCurrentStep () {
23- $ flow = $ this ->getMock ( ' \Craue\FormFlowBundle\Form\FormFlow ' , array ('getName ' , 'getCurrentStepNumber ' ));
23+ $ flow = $ this ->getFlowWithMockedMethods ( array ('getName ' , 'getCurrentStepNumber ' ));
2424
2525 $ flow
2626 ->expects ($ this ->once ())
@@ -33,7 +33,7 @@ public function testBcMethodDelegation_getCurrentStep() {
3333 }
3434
3535 public function testBcMethodDelegation_getCurrentStepDescription () {
36- $ flow = $ this ->getMock ( ' \Craue\FormFlowBundle\Form\FormFlow ' , array ('getName ' , 'getCurrentStepLabel ' ));
36+ $ flow = $ this ->getFlowWithMockedMethods ( array ('getName ' , 'getCurrentStepLabel ' ));
3737
3838 $ flow
3939 ->expects ($ this ->once ())
@@ -46,7 +46,7 @@ public function testBcMethodDelegation_getCurrentStepDescription() {
4646 }
4747
4848 public function testBcMethodDelegation_getMaxSteps () {
49- $ flow = $ this ->getMock ( ' \Craue\FormFlowBundle\Form\FormFlow ' , array ('getName ' , 'getStepCount ' ));
49+ $ flow = $ this ->getFlowWithMockedMethods ( array ('getName ' , 'getStepCount ' ));
5050
5151 $ flow
5252 ->expects ($ this ->once ())
@@ -59,7 +59,7 @@ public function testBcMethodDelegation_getMaxSteps() {
5959 }
6060
6161 public function testBcMethodDelegation_getStepDescriptions () {
62- $ flow = $ this ->getMock ( ' \Craue\FormFlowBundle\Form\FormFlow ' , array ('getName ' , 'getStepLabels ' ));
62+ $ flow = $ this ->getFlowWithMockedMethods ( array ('getName ' , 'getStepLabels ' ));
6363
6464 $ flow
6565 ->expects ($ this ->once ())
@@ -72,7 +72,7 @@ public function testBcMethodDelegation_getStepDescriptions() {
7272 }
7373
7474 public function testBcMethodDelegation_getFirstStep () {
75- $ flow = $ this ->getMock ( ' \Craue\FormFlowBundle\Form\FormFlow ' , array ('getName ' , 'getFirstStepNumber ' ));
75+ $ flow = $ this ->getFlowWithMockedMethods ( array ('getName ' , 'getFirstStepNumber ' ));
7676
7777 $ flow
7878 ->expects ($ this ->once ())
@@ -85,7 +85,7 @@ public function testBcMethodDelegation_getFirstStep() {
8585 }
8686
8787 public function testBcMethodDelegation_getLastStep () {
88- $ flow = $ this ->getMock ( ' \Craue\FormFlowBundle\Form\FormFlow ' , array ('getName ' , 'getLastStepNumber ' ));
88+ $ flow = $ this ->getFlowWithMockedMethods ( array ('getName ' , 'getLastStepNumber ' ));
8989
9090 $ flow
9191 ->expects ($ this ->once ())
@@ -98,7 +98,7 @@ public function testBcMethodDelegation_getLastStep() {
9898 }
9999
100100 public function testBcMethodDelegation_hasSkipStep () {
101- $ flow = $ this ->getMock ( ' \Craue\FormFlowBundle\Form\FormFlow ' , array ('getName ' , 'isStepSkipped ' ));
101+ $ flow = $ this ->getFlowWithMockedMethods ( array ('getName ' , 'isStepSkipped ' ));
102102
103103 $ flow
104104 ->expects ($ this ->once ())
0 commit comments