public function testGetSetAddNotifiedRelative() { unset($this->epa->{'notifiedRelatives'}); $notifiedRelative = new NotifiedRelative(); $notifiedRelative->setId('1'); $this->epa->addNotifiedRelative($notifiedRelative); $this->assertEquals($notifiedRelative, $this->epa->getNotifiedRelatives()[0]); unset($this->epa->{'notifiedRelatives'}); $notifiedRelatives = $this->epa->getNotifiedRelatives(); $notifiedRelatives->add($notifiedRelative); $this->epa->setNotifiedRelatives($notifiedRelatives); $this->assertEquals($notifiedRelative, $this->epa->getNotifiedRelatives()[0]); }
public function testGetsetNoticeGivenDateValidString() { $expected = date(OPGDateFormat::getDateFormat()); $this->na->setNoticeGivenDateString($expected); $this->assertEquals($expected, $this->na->getNoticeGivenDateString()); }