Changeset 35106 for trunk/tests/phpunit/tests/widgets.php
- Timestamp:
- 10/13/2015 01:48:41 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets.php
r35100 r35106 608 608 } 609 609 } 610 611 function test_the_widget_custom_before_title_arg() { 612 613 ob_start(); 614 the_widget( 615 'WP_Widget_Text', 616 array( 'title' => 'Notes', 'text' => 'Sample text' ), 617 array( 'before_widget' => '<span class="special %s">', 'after_widget' => '</span>' ) 618 ); 619 $actual = ob_get_clean(); 620 621 $this->assertRegExp( '/<span class="special widget_text">/', $actual ); 622 623 } 624 610 625 }
Note: See TracChangeset
for help on using the changeset viewer.