- Timestamp:
- 11/25/2021 07:39:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/wpWidgetCustomHtml.php
r52010 r52248 186 186 ); 187 187 $result = $widget->update( $instance, array() ); 188 $this->assertSame( $ result, $expected);188 $this->assertSame( $expected, $result ); 189 189 190 190 // Make sure KSES is applying as expected. … … 194 194 $expected['content'] = $instance['content']; 195 195 $result = $widget->update( $instance, array() ); 196 $this->assertSame( $ result, $expected);196 $this->assertSame( $expected, $result ); 197 197 remove_filter( 'map_meta_cap', array( $this, 'grant_unfiltered_html_cap' ) ); 198 198 … … 202 202 $expected['content'] = wp_kses_post( $instance['content'] ); 203 203 $result = $widget->update( $instance, array() ); 204 $this->assertSame( $ result, $expected);204 $this->assertSame( $expected, $result ); 205 205 remove_filter( 'map_meta_cap', array( $this, 'revoke_unfiltered_html_cap' ), 10 ); 206 206 }
Note: See TracChangeset
for help on using the changeset viewer.