@@ 218-225 (lines=8) @@ | ||
215 | * @param ActionData $data |
|
216 | * @return ActionInterface|\PHPUnit_Framework_MockObject_MockObject |
|
217 | */ |
|
218 | protected function createActionGroup(\PHPUnit_Framework_MockObject_Matcher_InvokedCount $expects, ActionData $data) |
|
219 | { |
|
220 | /* @var $action ActionInterface|\PHPUnit_Framework_MockObject_MockObject */ |
|
221 | $action = $this->getMock('Oro\Component\Action\Action\ActionInterface'); |
|
222 | $action->expects($expects)->method('execute')->with($data); |
|
223 | ||
224 | return $action; |
|
225 | } |
|
226 | ||
227 | /** |
|
228 | * @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expects |
@@ 517-531 (lines=15) @@ | ||
514 | * @param ActionData $data |
|
515 | * @return ActionInterface|\PHPUnit_Framework_MockObject_MockObject |
|
516 | */ |
|
517 | protected function createAction( |
|
518 | \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expects, |
|
519 | ActionData $data |
|
520 | ) { |
|
521 | /* @var $action ActionInterface|\PHPUnit_Framework_MockObject_MockObject */ |
|
522 | $action = $this->getMockBuilder('Oro\Component\Action\Action\ActionInterface') |
|
523 | ->disableOriginalConstructor() |
|
524 | ->getMock(); |
|
525 | ||
526 | $action->expects($expects) |
|
527 | ->method('execute') |
|
528 | ->with($data); |
|
529 | ||
530 | return $action; |
|
531 | } |
|
532 | ||
533 | /** |
|
534 | * @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expects |