Example #1
0
 public function setUp()
 {
     parent::setUp();
     stub($this->tracker_config)->isInsecureEmailgatewayEnabled()->returns(true);
     stub($this->tracker_config)->isTokenBasedEmailgatewayEnabled()->returns(false);
     $title_field = aStringField()->build();
     $description_field = aTextField()->build();
     stub($this->tracker)->getTitleField()->returns($title_field);
     stub($this->tracker)->getDescriptionField()->returns($description_field);
     stub($this->tracker)->getFormElementFields()->returns(array($title_field, $description_field));
     $this->changeset = stub('Tracker_Artifact_Changeset')->getId()->returns(666);
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $title_field = aStringField()->build();
     $description_field = aTextField()->build();
     stub($this->tracker)->getTitleField()->returns($title_field);
     stub($this->tracker)->getDescriptionField()->returns($description_field);
     stub($this->tracker)->getFormElementFields()->returns(array($title_field, $description_field));
     $this->changeset = stub('Tracker_Artifact_Changeset')->getId()->returns(666);
     $this->mailgateway = new Tracker_Artifact_MailGateway_InsecureMailGateway($this->parser, $this->incoming_message_factory, $this->citation_stripper, $this->notifier, $this->incoming_mail_dao, $this->artifact_factory, new Tracker_ArtifactByEmailStatus($this->tracker_config), $this->logger);
 }