public function testIsValidMotherOldFail() { $personaStub = $this->createPersonaStub(null, '1980'); $motherStub = $this->createPersonaStub(PersonaInterface::GENDER_FEMALE, '2003'); $validator = new BaseParentsValidator(); $this->assertFalse($validator->isValidMother($personaStub, $motherStub)); }
public function testIsValidParentsWithoutOld() { $personaStub = $this->createPersonaStub(null, '2003'); $motherStub = $this->createPersonaStub(PersonaInterface::GENDER_FEMALE); $fatherStub = $this->createPersonaStub(PersonaInterface::GENDER_MALE); $validator = new BaseParentsValidator(); $this->assertTrue($validator->isValidFather($personaStub, $fatherStub)); $this->assertTrue($validator->isValidMother($personaStub, $motherStub)); }