- Timestamp:
- 07/24/2017 10:53:20 PM (7 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/tests/phpunit/tests/widgets/custom-html-widget.php
r41117 r41133 60 60 ); 61 61 62 // Convert Custom HTML widget instance into Text widget instance data. 63 $text_widget_instance = array_merge( $instance, array( 64 'text' => $instance['content'], 65 'filter' => false, 66 'visual' => false, 67 ) ); 68 unset( $text_widget_instance['content'] ); 69 62 70 update_option( 'use_balanceTags', 0 ); 63 71 add_filter( 'widget_custom_html_content', array( $this, 'filter_widget_custom_html_content' ), 5, 3 ); … … 76 84 $this->assertNotContains( '<br>', $output ); 77 85 $this->assertNotContains( '</u>', $output ); 78 $this->assertEquals( $ instance, $this->widget_text_args[1] );86 $this->assertEquals( $text_widget_instance, $this->widget_text_args[1] ); 79 87 $this->assertEquals( $instance, $this->widget_custom_html_content_args[1] ); 80 88 $this->assertSame( $widget, $this->widget_text_args[2] ); 81 89 $this->assertSame( $widget, $this->widget_custom_html_content_args[2] ); 82 remove_filter( 'widget_custom_html_content', array( $this, 'filter_widget_custom_html_content' ), 5 , 3);90 remove_filter( 'widget_custom_html_content', array( $this, 'filter_widget_custom_html_content' ), 5 ); 83 91 remove_filter( 'widget_text', array( $this, 'filter_widget_text' ), 10 ); 84 92
Note: See TracChangeset
for help on using the changeset viewer.