Changeset 36784
- Timestamp:
- 02/29/2016 09:53:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/partial.php
r36689 r36784 216 216 * @see WP_Customize_Partial::render() 217 217 */ 218 function test_render_ bad_callback() {218 function test_render_with_bad_callback_should_give_preference_to_return_value() { 219 219 $partial = new WP_Customize_Partial( $this->selective_refresh, 'foo', array( 220 220 'render_callback' => array( $this, 'render_echo_and_return' ), 221 221 ) ); 222 222 $this->setExpectedIncorrectUsage( 'render' ); 223 $ partial->render();223 $this->assertSame( 'bar', $partial->render() ); 224 224 } 225 225
Note: See TracChangeset
for help on using the changeset viewer.