Changeset 41070 for trunk/tests/phpunit/tests/widgets/text-widget.php
- Timestamp:
- 07/18/2017 04:16:16 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/text-widget.php
r41050 r41070 267 267 268 268 $instance = array_merge( $base_instance, array( 269 'text' => "\nOne line", 270 'filter' => false, 271 ) ); 272 $this->assertFalse( $widget->is_legacy_instance( $instance ), 'Not legacy when there is leading whitespace.' ); 273 274 $instance = array_merge( $base_instance, array( 275 'text' => "\nOne line\n\n", 276 'filter' => false, 277 ) ); 278 $this->assertFalse( $widget->is_legacy_instance( $instance ), 'Not legacy when there is trailing whitespace.' ); 279 280 $instance = array_merge( $base_instance, array( 269 281 'text' => "One\nTwo", 270 282 'filter' => false, … … 295 307 ) ); 296 308 $this->assertTrue( $widget->is_legacy_instance( $instance ), 'Legacy when HTML comment is present.' ); 297 298 $instance = array_merge( $base_instance, array(299 'text' => 'Here is a [gallery]',300 'filter' => true,301 ) );302 $this->assertTrue( $widget->is_legacy_instance( $instance ), 'Legacy mode when a shortcode is present.' );303 309 304 310 // Check text examples that will not migrate to TinyMCE.
Note: See TracChangeset
for help on using the changeset viewer.