private function driverRemove(Driver $driver) { $id = $driver->getId(); Driver::removeDriver($driver); $this->init->em->remove($driver); $this->init->em->flush(); $this->assertEquals(null, $this->init->driverRepo->find($id)); }