/**
  * Specify additional Criteria for data selection
  *
  * @param CriteriaInterface $criteria
  * @param EntityCollection  $collection
  *
  * @return void
  */
 public function criteria(CriteriaInterface $criteria, EntityCollection $collection)
 {
     $criteria->apply($this->getQueryBuilderFor($collection));
 }
 /**
  * @test
  * @dataProvider getUnsuitableRecommendationStatuses
  */
 public function criteria_is_not_satisfied_when_reference_is_not_acceptable_with_suitable_guarantor(RentRecoveryPlusReference $reference)
 {
     $this->assertFalse($this->criteria->isSatisfiedBy($reference));
 }
 /**
  * @test
  * @dataProvider getUnacceptableReferenceStatuses
  */
 public function criteria_is_not_satisfied_when_guarantor_is_not_acceptable($recommendationStatus)
 {
     $this->recommendation->setStatus($recommendationStatus);
     $this->assertFalse($this->criteria->isSatisfiedBy(new RentRecoveryPlusReference()));
 }