fixes #13941 - expect deprecation warnings in tests
When testing deprecated routes, parameters etc, expect the deprecation warnings to both test that it's logged and to prevent the logging from cluttering test output.
Related issues
Bug #13941: Core tests should not print API deprecation warnings
fixes #13941 - expect deprecation warnings in tests
When testing deprecated routes, parameters etc, expect the deprecation
warnings to both test that it's logged and to prevent the logging from
cluttering test output.