public function is_semantic_configured_for_insecure_emailgateway() { return $this->artifactbyemail_status->isSemanticConfigured($this->tracker); }
public function itChecksSemantic() { stub($this->tracker_plugin_conf)->isInsecureEmailgatewayEnabled()->returns(true); stub($this->tracker)->isEmailgatewayEnabled()->returns(true); $tracker_artifactbyemailstatus = new Tracker_ArtifactByEmailStatus($this->tracker_plugin_conf); $this->assertFalse($tracker_artifactbyemailstatus->isSemanticConfigured($this->tracker)); $field_title = mock('Tracker_FormElement_Field_String'); stub($this->tracker)->getTitleField()->returns($field_title); $this->assertFalse($tracker_artifactbyemailstatus->isSemanticConfigured($this->tracker)); $field_description = mock('Tracker_FormElement_Field_Text'); stub($this->tracker)->getDescriptionField()->returns($field_description); $this->assertTrue($tracker_artifactbyemailstatus->isSemanticConfigured($this->tracker)); }