/**
  * Pre test set up.
  */
 public function setUp()
 {
     $this->criteria = new CreditScoreCriteria();
     $this->reference = new ReferencingApplication();
     $this->decisionDetails = new ReferencingDecisionDetails();
     $this->creditReference = new CreditReference();
     $this->rrpReference = new RentRecoveryPlusReference();
     $this->rrpReference->setParent($this->reference);
     $this->rrpReference->setDecisionDetails($this->decisionDetails);
     $this->decisionDetails->setCreditReference($this->creditReference);
 }
 public function setUp()
 {
     $this->decisionDetails = new ReferencingDecisionDetails();
     $this->recommendation = new Recommendation();
     $this->guarantorRrpReference = new RentRecoveryPlusReference();
     $this->guarantorRrpReference->setParent(new ReferencingApplication());
     $this->guarantorRrpReference->setDecisionDetails($this->decisionDetails);
     $this->decisionDetails->setRecommendation($this->recommendation);
     $guarantorCreatorMock = $this->getMockBuilder('RRP\\Utility\\RrpGuarantorReferenceCreator')->disableOriginalConstructor()->getMock();
     $guarantorCreatorMock->expects($this->once())->method('getGuarantor')->willReturn($this->guarantorRrpReference);
     $this->criteria = new GuarantorOutcomeCriteria($guarantorCreatorMock);
 }
 /**
  * @return array
  */
 public function getUnsuitableRecommendationStatuses()
 {
     $recommendationStatuses = array('acceptable' => RecommendationStatuses::ACCEPTABLE, 'acceptable_with_condition' => RecommendationStatuses::ACCEPTABLE_WITH_CONDITION, 'not_acceptable' => RecommendationStatuses::NOT_ACCEPTABLE, 'awaiting_further_information' => RecommendationStatuses::AWAITING_FURTHER_INFORMATION, 'awaiting_completion_of_lead_tenant' => RecommendationStatuses::AWAITING_COMPLETION_OF_LEAD_TENANT, 'zero_rent_cotenant_not_acceptable' => RecommendationStatuses::ZERO_RENT_COTENANT_NOT_ACCEPTABLE, 'zero_rent_cotenant_acceptable' => RecommendationStatuses::ZERO_RENT_COTENANT_ACCEPTABLE);
     $references = array();
     foreach ($recommendationStatuses as $key => $recommendationStatus) {
         $recommendation = new Recommendation();
         $recommendation->setStatus($recommendationStatus);
         $decisionDetails = new ReferencingDecisionDetails();
         $decisionDetails->setRecommendation($recommendation);
         $reference = new ReferencingApplication();
         $rrpReference = new RentRecoveryPlusReference();
         $rrpReference->setDecisionDetails($decisionDetails);
         $rrpReference->setParent($reference);
         $references[$key] = $rrpReference;
     }
     return array(array($references['acceptable']), array($references['acceptable_with_condition']), array($references['not_acceptable']), array($references['awaiting_further_information']), array($references['awaiting_completion_of_lead_tenant']), array($references['zero_rent_cotenant_not_acceptable']), array($references['zero_rent_cotenant_acceptable']));
 }