public function testIsDeletableMultiReferences() { $image = new LocalImage(); $image->updateStorage('image', 'thumb'); $this->em->persist($image); $image = new LocalImage(); $image->updateStorage('image', 'thumb'); $this->em->persist($image); $this->em->flush(); $this->assertFalse($this->service->isDeletable('image')); }