コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->exporter = new Tracker_XML_Exporter_ChangesetValue_ChangesetValueListXMLExporter(mock('UserXmlExporter'));
     $this->artifact_xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><artifact />');
     $this->changeset_xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><changeset />');
     $this->field = aMultiSelectBoxField()->withBind(aBindStatic()->build())->withName('status')->build();
     $this->changeset_value = mock('Tracker_Artifact_ChangesetValue_List');
     stub($this->changeset_value)->getField()->returns($this->field);
 }
 public function setUp()
 {
     parent::setUp();
     $this->bind = mock('Tracker_FormElement_Field_List_Bind_Static');
     $this->field = aMultiSelectBoxField()->withBind($this->bind)->build();
 }