[wp-unit-tests] [WordPress Unit Tests] #107: Fatal error in factory.php when running multisite tests

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 19 14:59:05 UTC 2012


#107: Fatal error in factory.php when running multisite tests
-------------------------------+------------------
 Reporter:  ryan               |       Owner:
     Type:  defect             |      Status:  new
 Priority:  normal             |   Milestone:
Component:  Admin Screen       |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------

Comment (by nacin):

 Replying to [comment:3 kurtpayne]:
 > Replying to [comment:2 nacin]:
 > > This doesn't help as a factory should consistently produce the desired
 result. In this case, we're not successfully inserting a term, so that's a
 problem.
 >
 > This patch would make the term factory consistent with the logic in
 `WP_UnitTest_Factory_For_Thing::create()`:
 >
 > {{{
 > if ( !$created || is_wp_error( $created ) )
 >       return $created;
 > }}}

 Got it. Looks good then.

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/107#comment:4>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list