Fix unit test

Regression introduced with https://github.com/owncloud/core/pull/11615
Merge pull request #11617 from owncloud/fix-unit

Fix unit test