WordPress.org

Make WordPress Core

Changeset 35113


Ignore:
Timestamp:
10/13/15 02:35:47 (23 months ago)
Author:
wonderboymusic
Message:

Widgets: after [35106], ensure that the widget required by the unit test is registered.

See #19450.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets.php

    r35106 r35113  
    610610 
    611611    function test_the_widget_custom_before_title_arg() { 
     612        register_widget( 'WP_Widget_Text' ); 
    612613 
    613614        ob_start(); 
     
    618619        ); 
    619620        $actual = ob_get_clean(); 
     621         
     622        unregister_widget( 'WP_Widget_Text' ); 
    620623 
    621624        $this->assertRegExp( '/<span class="special widget_text">/', $actual ); 
Note: See TracChangeset for help on using the changeset viewer.