Fix disabling of logger in DoctrineProvider
Fix test failures for DoctrineProvider