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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff-2941557-2-4.txt | 488 bytes | megachriz |
| #4 | feeds-directory-fetcher-kernel-test-2941557-4.patch | 73.17 KB | megachriz |
| #2 | feeds-directory-fetcher-kernel-test-2941557-2.patch | 73.31 KB | megachriz |
Comments
Comment #2
megachrizThis 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'.
Comment #3
megachrizOh, and it also adds an
import()method to the feed entity with which a feed can be imported in one go!Comment #4
megachrizRemoving unused use statements.
Comment #6
megachrizCommitted #4.