public function testGetsetNoticeGivenDateValidString() { $expected = date(OPGDateFormat::getDateFormat()); $this->na->setNoticeGivenDateString($expected); $this->assertEquals($expected, $this->na->getNoticeGivenDateString()); }
public function testGetSetAddNotifiedAttorney() { unset($this->epa->{'notifiedAttorneys'}); $notifiedAttorney = new NotifiedAttorney(); $notifiedAttorney->setId('1'); $this->epa->addNotifiedAttorney($notifiedAttorney); $this->assertEquals($notifiedAttorney, $this->epa->getNotifiedAttorneys()[0]); unset($this->epa->{'notifiedAttorneys'}); $notifiedAttorneys = $this->epa->getNotifiedAttorneys(); $notifiedAttorneys->add($notifiedAttorney); $this->epa->setNotifiedAttorneys($notifiedAttorneys); $this->assertEquals($notifiedAttorney, $this->epa->getNotifiedAttorneys()[0]); }