[wp-trac] [WordPress Trac] #31705: Tests_Feed_RSS2::test_items errors with Undefined index: content
WordPress Trac
noreply at wordpress.org
Fri Mar 20 10:59:12 UTC 2015
#31705: Tests_Feed_RSS2::test_items errors with Undefined index: content
------------------------------+-----------------------------
Reporter: ianmjones | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: trunk
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
When running the current Unit Tests, there is an error.
{{{
There was 1 error:
1) Tests_Feed_RSS2::test_items
Undefined index: content
/Users/ian/Dropbox/Websites/wordpress-
core/tests/phpunit/tests/feed/rss2.php:120
}}}
On investigation it turns out that the posts generated in the
`Tests_Feed_RSS2::setUp()` do not have authors properly defined and
therefore the `<dc:creator>` elements of the feed have no content.
I have a patch for the unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31705>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list