Ejemplo n.º 1
0
 public function testIsCompleted()
 {
     $subject = 'order-car-124';
     $context = array('color' => 'red');
     $action = new Action(new ActionDefinition('orderPaintForCar', 'Class'), 'orderPaintForCar', $subject, $context);
     $action->setState(Action::STATE_COMPLETED);
     $this->assertTrue($action->isCompleted());
 }