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