The mock file builder is designed to provide mock files for testing of metadata extraction by various submodule metadata extractors. Currently it does this well for document and pdf file mocks with respect to the metadata itself, however, part of the metadata of a file is also its content, and this is not working for the pdf mock.
As a component of this, for testing, we need to include the expected content in the metadata object which is returned, so that metadata extractors can write tests that check that any extracted content matches the content of the mock.
The mock file builder is designed to provide mock files for testing of metadata extraction by various submodule metadata extractors. Currently it does this well for document and pdf file mocks with respect to the metadata itself, however, part of the metadata of a file is also its content, and this is not working for the pdf mock.
As a component of this, for testing, we need to include the expected content in the metadata object which is returned, so that metadata extractors can write tests that check that any extracted content matches the content of the mock.