XWIKI-10168: Source metadata should be set to a document reference after parsing any content related to a document

Fix a unit test that was indirectly impacted by the added dependency to xwiki-platform-rendering-xwiki into xwiki-platform-display-api, since this test was using @AllComponent which now register XWikiLinkLabelGenerator with more priority than DefaultLinkLabelGenerator and require the injection of a DocumentReferenceResolver that is missing.