Make WordPress Core

Ticket #27350: 27350.diff

File 27350.diff, 555 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 27350
     406         */
     407        function test_wpautop_div_with_pre() {
     408                $input = "hello<div>test</div>";
     409                $expected = '<p>hello</p>
     410<div>test</div>';
     411
     412        $this->assertEquals( $expected, wpautop( $input ) );
     413        }
     414
    403415}