/** * @testdox Allows setting multi job locations * @covers Jobs\Entity\Job::getLocations * @covers Jobs\Entity\Job::setLocations */ public function testSetGetLocations() { $arrayCollection = new ArrayCollection(); $location = new Location(); $location->setCity("Frankfurt"); $arrayCollection->add($location); $this->target->setLocations($arrayCollection); $this->assertEquals($arrayCollection, $this->target->getLocations()); }