While working on #2939503: Unpublish/Delete nodes not included in feed I noticed I was beginning to change a lot of code, like expanding the Kernel base test, moving files around and adding missing config schema for the directory fetcher. Since I'm not sure when that other feature will be done, I thought it would be best to spin off parts of that patch that are ready. This will make the patch in the other issue less complex and the same base code can be used for other issues.

Let's add basic test coverage for the directory fetcher in the form of a Kernel test. The Kernel test will perform a full import.

Comments

MegaChriz created an issue. See original summary.

megachriz’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new73.31 KB

This patch adds a Kernel test of the directory fetcher, expands the base class for kernel tests, adds traits for adding feed types and feeds, adds missing config schema for the directory fetcher and places the RSS file 'googlenewstz.rss2' in a subfolder called 'rss'.

megachriz’s picture

Oh, and it also adds an import() method to the feed entity with which a feed can be imported in one go!

megachriz’s picture

Removing unused use statements.

  • MegaChriz committed 40dda2f on 8.x-3.x
    Issue #2941557 by MegaChriz: Added a Kernel test for DirectoryFetcher.
    
megachriz’s picture

Status: Needs review » Fixed

Committed #4.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.