Changeset 28716 for trunk/tests/phpunit/tests/shortcode.php
- Timestamp:
- 06/10/2014 01:54:11 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/shortcode.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/shortcode.php
r25002 r28716 374 374 } 375 375 376 /** 377 * Check that shortcode_unautop() will always recognize spaces around shortcodes. 378 * 379 * @ticket 22692 380 */ 381 function test_spaces_around_shortcodes() { 382 $nbsp = "\xC2\xA0"; 383 384 $input = array(); 385 386 $input[] = "<p>[gallery ids=\"37,15,11\"]</p>"; 387 $input[] = "<p> [gallery ids=\"37,15,11\"] </p>"; 388 $input[] = "<p> {$nbsp}[gallery ids=\"37,15,11\"] {$nbsp}</p>"; 389 $input[] = "<p> [gallery ids=\"37,15,11\"] </p>"; 390 391 $output = "[gallery ids=\"37,15,11\"]"; 392 393 foreach($input as $in) { 394 $this->assertEquals( $output, shortcode_unautop( $in ) ); 395 } 396 } 376 397 }
Note: See TracChangeset
for help on using the changeset viewer.