[wp-unit-tests] [WordPress Unit Tests] #125: Test for Core Trac #5809
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 25 19:26:39 UTC 2012
#125: Test for Core Trac #5809
----------------------------+------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Taxonomy | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by wonderboymusic):
Without my patch applied, the first test should pass and the second test
should fail.
With my patch applied, both tests should pass.
As is stands now, term_taxonomy_id is the primary key for term_id/taxonomy
relationship, so since we create the term in the first insert, the second
will reuse it. When the term is updated, WP currently changes the name of
both terms because it doesn't care that the term_id is in multiple
taxonomies (FAIL) - my patch makes a new term so the term_ids shouldn't
match in the second assertion.
--
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/125#comment:2>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project
More information about the wp-unit-tests
mailing list