Make WordPress Core

Ticket #25785: 25785.diff

File 25785.diff, 672 bytes (added by jorbin, 10 years ago)

Unit Tests from MikeHansenMe originally from #30142

  • tests/phpunit/tests/formatting/Autop.php

     
    400400
    401401                $this->assertEquals( $expected, trim( wpautop( $content ) ) );
    402402        }
     403
     404        /**
     405         * @ticket 25785
     406         */
     407        function test_div_with_multiple_p() {
     408                $input = "<div>Insert FIRST PARAGRAPH here.
     409
     410Insert 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
    403418}