Commit graph

2 commits

Author SHA1 Message Date
Brian Wolff
4a2730532a [php8.1] Make WikiImporterFactoryTest use better mock for ImportSource
On php8.1, this test was throwing a warning because readChunk() returned
null, which confused things. Mock out atEnd() method to make it look like
a zero byte stream to avoid the issue

Bug: T313663
Change-Id: I0d7271a07a31dc0cbe6108748d9cabb2c8f04f41
2022-07-24 07:34:10 -07:00
ZabeMath
3c978f6fc6 WikiImporter: inject services
This patch injects services into WikiImporter. It also adds
a WikiImporterFactory service for creating WikiImporter
instances.

Change-Id: I2966297e5728fca1ae8280361f1008cef6c6041b
2021-05-24 23:10:07 +02:00