/** * Remove a Color. * * @param Color|Identity $id * * @throws ColorNotFoundException */ public function remove(Identity $id) { $result = parent::find($id); if (null === $result) { throw new ColorNotFoundException(); } parent::remove($id); }
public function testRemove() { $id = new ObjectId(1); $this->repository->remove($id); $this->assertFalse($this->repository->exists($id)); }