When #243532: Catch notices, warnings, errors and fatal errors from the tested side is applied, the ImportOPMLTestCase generates the following notices when posting to content/aggregator/add/opml:
Exception Notice aggregator.admin.inc 364
Undefined index: TEXT
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 56_passes_0_fails_and_0_exceptions.patch | 614 bytes | chx |
| #3 | another_notice_down.patch | 1.78 KB | boombatower |
| #1 | another_notice_down.patch | 671 bytes | chx |
Comments
Comment #1
chx commentedComment #2
boombatower commentedThis patch creates:
Comment #3
boombatower commentedIt seems that 3 feeds are actually inserted, but that 2 used to have a blank title so 1 was thrown out as Duplicate title. The following OPML is used in upload
Attached patch changes it to expect 3. Please confirm that I'm making sense.
Comment #4
webchickHm. Don't think so. From how I read that OPML file, the only two rows which ought to be added are the ones labeled first feed and second feed. If 3 are getting through, one of the assertions before that (or the code it's testing) is buggy, since they're all checking specifically for that.
What rows end up in the database?
Comment #5
catchsubscribe/critical etc.
Comment #6
chx commentedHummm, humm.
Comment #7
webchickhttp://webchick.net/patch-reviewers-are-not-clairvoyant :P
Comment #8
chx commentedI have nothing to say. If you want to use two array elements, check for the existence of both. That's exactly what the code does. I thought about 20 chars of new code did not require a description of length of War and Peace.
Comment #9
chx commentedno TEXT but passed the condition and throwed a notice.
Comment #10
webchickThank you! :)
Committed to HEAD. :D