public function setUp() { parent::setUp(); $this->transition_id = 123; $this->post_action_id = 789; $this->transition = aTransition()->withId($this->transition_id)->build(); $this->dao = mock('Transition_PostAction_CIBuildDao'); $this->factory = new Transition_PostAction_CIBuildFactory($this->dao); }
public function setUp() { parent::setUp(); $this->transition_id = 123; $this->transition = aTransition()->withId($this->transition_id)->build(); $this->date_dao = mock('Transition_PostAction_Field_DateDao'); $this->int_dao = mock('Transition_PostAction_Field_IntDao'); $this->float_dao = mock('Transition_PostAction_Field_FloatDao'); $this->element_factory = mock('Tracker_FormElementFactory'); $this->factory = new Transition_PostAction_FieldFactory($this->element_factory, $this->date_dao, $this->int_dao, $this->float_dao); }
public function withTransitionId($transition_id) { $this->transition = aTransition()->withId($transition_id)->build(); return $this; }
public function setUp() { parent::setUp(); $this->factory = new Transition_PostActionFactory(); $this->mapping = array('F1' => 62334); $this->transition = aTransition()->build(); }