/** * @test */ public function is_not_satisified_when_status_is_not_complete() { $reference = new Reference(); $reference->setStatus('pending'); $specification = new CompleteStatusSpecification(); $this->assertFalse($specification->isSatisfiedBy($reference)); }
/** * @test */ public function is_not_satisified_when_rent_share_is_incorrect() { $reference = new Reference(); $reference->setRentShare(501); $specification = new RentShareSpecification(); $this->assertFalse($specification->isSatisfiedBy($reference)); }
/** * @test */ public function simple_specification() { $reference = new Reference(); $reference->setStatus('complete'); $reference->setRentShare(500); $reference->setIsCouple(true); $specification = new PolicySpecification(); $this->assertTrue($specification->isSatisfiedBy($reference)); }