private function custodianRemove(Custodian $custodian) { $id = $custodian->getId(); Custodian::removeCustodian($custodian); $this->init->em->remove($custodian); $this->init->em->flush(); $this->assertEquals(null, $this->init->custodianRepo->find($id)); }