Ticket #22230: 22230-test.2.patch
File 22230-test.2.patch, 929 bytes (added by , 11 years ago) |
---|
-
tests/phpunit/tests/formatting/Autop.php
98 98 $str = 'Username: <input type="text" id="username" name="username" /><br />Password: <input type="password" id="password1" name="password1" />'; 99 99 $this->assertEquals( "<p>$str</p>", trim( wpautop( $str ) ) ); 100 100 } 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 ) ) ); 101 110 } 111 }