[Doctrine] removed usage of the deprecated LoggerInterface in some tests