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

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 17 00:29:11 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 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;
 }}}

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


More information about the wp-trac mailing list