Changeset 33624 for trunk/tests/phpunit/tests/formatting/Autop.php
- Timestamp:
- 08/17/2015 05:35:58 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/formatting/Autop.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/Autop.php
r33469 r33624 445 445 ); 446 446 } 447 447 448 /** 449 * wpautop() should not convert line breaks after <br /> tags 450 * 451 * @ticket 33377 452 */ 453 function test_that_wpautop_skips_line_breaks_after_br() { 454 $content = ' 455 line 1<br> 456 line 2<br/> 457 line 3<br /> 458 line 4 459 line 5 460 '; 461 462 $expected = '<p>line 1<br /> 463 line 2<br /> 464 line 3<br /> 465 line 4<br /> 466 line 5</p>'; 467 468 $this->assertEquals( $expected, trim( wpautop( $content ) ) ); 469 } 470 471 /** 472 * wpautop() should convert multiple line breaks into a paragraph regarless of <br /> format 473 * 474 * @ticket 33377 475 */ 476 function test_that_wpautop_adds_a_paragraph_after_multiple_br() { 477 $content = ' 478 line 1<br> 479 <br/> 480 line 2<br/> 481 <br /> 482 '; 483 484 $expected = '<p>line 1</p> 485 <p>line 2</p>'; 486 487 $this->assertEquals( $expected, trim( wpautop( $content ) ) ); 488 } 489 448 490 }
Note: See TracChangeset
for help on using the changeset viewer.