示例#1
0
 public function testSetCondition()
 {
     $condition = $this->getMockBuilder('Oro\\Bundle\\WorkflowBundle\\Model\\Condition\\ConditionInterface')->disableOriginalConstructor()->getMockForAbstractClass();
     $this->assignValue->expects($this->once())->method('setCondition')->with($condition);
     $this->action->setCondition($condition);
 }
示例#2
0
 public function testSetCondition()
 {
     $condition = $this->getMockBuilder('Oro\\Component\\ConfigExpression\\ExpressionInterface')->disableOriginalConstructor()->getMockForAbstractClass();
     $this->assignValue->expects($this->once())->method('setCondition')->with($condition);
     $this->action->setCondition($condition);
 }