Make WordPress Core

Ticket #22230: 22230-test.2.patch

File 22230-test.2.patch, 929 bytes (added by rachelbaker, 11 years ago)

Corrected paths in diff file to be root of develop repo.

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

     
    9898                $str = 'Username: <input type="text" id="username" name="username" /><br />Password: <input type="password" id="password1" name="password1" />';
    9999                $this->assertEquals( "<p>$str</p>", trim( wpautop( $str ) ) );
    100100        }
     101
     102        /**
     103         * wpautop() Should not add <br/> to "<select>" elements
     104         *
     105         * @ticket 22230
     106         */
     107        public function test_skip_select_elements() {
     108                $str = 'Country: <select id="state" name="state"><option value="1">Alabama</option><option value="2">Alaska</option><option value="3">Arizona</option><option value="4">Arkansas</option><option value="5">California</option></select>';
     109                $this->assertEquals( "<p>$str</p>", trim( wpautop( $str ) ) );
    101110}
     111}