Fix unit test

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