Fix unit test

Regression introduced with https://github.com/owncloud/core/pull/11615

@DeepDiver1975 @th3fallen