public function testGetSetWebsite() { $expected = uniqid('WEBSITE '); $this->assertEmpty($this->instance->getWebsite()); $this->assertInstanceOf(DistrictCouncil::class, $this->instance->setWebsite($expected)); $this->assertEquals($expected, $this->instance->getWebsite()); }
/** * @param ObjectManager $manager * @return LoadTestPostCodes */ protected function loadPostCodeInNewcastle(ObjectManager $manager) { $url = "newcastle.gov.uk"; $auth = new Authority(); $dc = new DistrictCouncil('E08000021', 'Newcastle upon Tyne'); $ew = new ElectoralWard('E05001111', 'Westgate'); $dc->setWebsite($url); $auth->setDistrictCouncil($dc); $auth->setCountry('England'); $auth->setCounty($this->englandGlobalCounty); $auth->setElectoralWard($ew); $auth->setPostcode("NE1 7RS"); $manager->persist($auth); $manager->flush(); return $this; }