There should be a base class for functional tests in Feeds, as tests to be written for #2669974: Implement the CSV parser UI and [#] will likely have some overlap.
The base class should be called FeedsBrowserTestBase and be added to feeds/tests/src/Functional.
The class FeedsWebTestCase from the D7 version of Feeds can be used as reference.
Requirements
- Feeds module should be enabled.
- The
setUp()method should add a content type called 'article'. - The
setUp()method create an user with Feeds admin privileges. - There should be a method for adding a feed type.
- There should be a method for adding mapping.
- There should be a method for adding a feed.
- There should be a method performing an import.
Optional
- Port other methods from the FeedsWebTestCase class from the D7 version of Feeds.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | feeds-base-test-class-2917925-3.patch | 1.07 KB | megachriz |
Comments
Comment #2
megachrizComment #3
megachrizThis is very very basic. It only declares that the Feeds module must be enabled. Note: also added a base class for Feeds kernel tests.
Comment #5
megachrizFiles have been added, but this issue is not yet resolved, so status back to "active".
Comment #6
megachrizWith #2939503: Unpublish/Delete nodes not included in feed this issue is almost fixed.
There are just a few methods from the D7 version left to be ported. Among them, I think
importUrl()andimportFile()could be useful, but there are probably a few more methods worthwhile to port.Comment #7
megachrizComment #8
megachrizIt looks like this has been fixed a long time ago.