[wp-trac] [WordPress Trac] #32536: In unit tests, `$this->factory->term->create_and_get()` returns `null` for non-tags

WordPress Trac noreply at wordpress.org
Sat May 30 13:03:11 UTC 2015


#32536: In unit tests, `$this->factory->term->create_and_get()` returns `null` for
non-tags
------------------------------+---------------------------
 Reporter:  dlh               |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.3
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:                    |     Focuses:
------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32659"]:
 {{{
 #!CommitTicketReference repository="" revision="32659"
 Term unit test factory class should override `create_and_get()` method.

 The override is necessary because the `get_term()` call, which fetches the
 term object, needs the `'taxonomy'` argument passed to the factory method.

 Props dlh.
 Fixes #32536.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32536#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list