Ticket #25785: 25785.diff
File 25785.diff, 672 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/tests/formatting/Autop.php
400 400 401 401 $this->assertEquals( $expected, trim( wpautop( $content ) ) ); 402 402 } 403 404 /** 405 * @ticket 25785 406 */ 407 function test_div_with_multiple_p() { 408 $input = "<div>Insert FIRST PARAGRAPH here. 409 410 Insert SECOND PARAGRAPH here.</div>"; 411 $expected = '<div> 412 <p>Insert FIRST PARAGRAPH here.</p> 413 <p>Insert SECOND PARAGRAPH here.</p> 414 </div>'; 415 $this->assertEquals( $expected, trim( wpautop( $input ) ) ); 416 } 417 403 418 }