public function testSetGallery() { $photo = new Photo(); $gallery = new \AppBundle\Entity\Gallery(); $photo->setGallery($gallery); $this->assertEquals($gallery, $photo->getGallery()); }