| 303 | function test_shortcode_unautop() { |
| 304 | // a blank line is added at the end, so test with it already there |
| 305 | $test_string = <<<EOF |
| 306 | [footag] |
| 307 | |
| 308 | EOF; |
| 309 | |
| 310 | $this->assertEquals( $test_string, shortcode_unautop( wpautop( $test_string ) ) ); |
| 311 | } |
| 312 | |
| 313 | function test_multiple_shortcode_unautop() { |
| 314 | // a blank line is added at the end, so test with it already there |
| 315 | $test_string = <<<EOF |
| 316 | [footag] |
| 317 | [footag] |
| 318 | |
| 319 | EOF; |
| 320 | |
| 321 | $actual = shortcode_unautop( wpautop( $test_string ) ); |
| 322 | $this->assertEquals( $test_string, $actual ); |
| 323 | } |
| 324 | |