public function testInitialize() { $options = array('foo'); $this->hasValue->expects($this->once())->method('initialize')->with($options); $this->condition->initialize($options); }
/** * @expectedException \Oro\Bundle\WorkflowBundle\Exception\ConditionException * @expectedExceptionMessage Options must have 1 element, but 0 given */ public function testInitializeFailsWhenOptionNotOneElement() { $this->condition->initialize(array()); }