[wp-trac] [WordPress Trac] #25282: Unit Tests should run in Debug mode

WordPress Trac noreply at wordpress.org
Thu Sep 12 14:47:59 UTC 2013


#25282: Unit Tests should run in Debug mode
----------------------------+--------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.7
Component:  Unit Tests      |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+--------------------

Comment (by wonderboymusic):

 In [changeset:"25402"]:
 {{{
 #!CommitTicketReference repository="" revision="25402"
 There was way too much duplicated code in my notice cleanup, it built up
 over time, and there's definitely a need to standardize.

 * Remove duplicated code for deprecated function notice suppression
 * Add support in `WP_UnitTestCase` setUp/tearDown methods for
 `$deprecated_functions` fixture if the extending class has added it
 * Add a `$deprecated_functions` fixture to each extending class that needs
 it

 To use this fixture, add something to your Test Case class like so:
 `protected $deprecated_functions = array( 'get_theme', 'get_themes',
 'get_theme_data', 'get_current_theme' );`

 See #25282.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25282#comment:41>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list