Changeset 33740 for trunk/tests/phpunit/tests/shortcode.php
- Timestamp:
- 08/25/2015 09:50:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/shortcode.php
r33600 r33740 5 5 class Tests_Shortcode extends WP_UnitTestCase { 6 6 7 protected $shortcodes = array( 'test-shortcode-tag', 'footag', 'bartag', 'baztag', 'dumptag', 'hyphen', 'hyphen-foo', 'hyphen-foo-bar' );7 protected $shortcodes = array( 'test-shortcode-tag', 'footag', 'bartag', 'baztag', 'dumptag', 'hyphen', 'hyphen-foo', 'hyphen-foo-bar', 'url' ); 8 8 9 9 function setUp() { … … 72 72 function _shortcode_hyphen_foo_bar() { 73 73 return __FUNCTION__; 74 } 75 76 function _shortcode_url() { 77 return 'http://www.wordpress.org/'; 74 78 } 75 79 … … 455 459 '', 456 460 ), 461 array( 462 '[url]', 463 'http://www.wordpress.org/', 464 ), 465 array( 466 '<a href="[url]">', 467 '<a href="http://www.wordpress.org/">', 468 ), 469 array( 470 '<a href=[url] >', 471 '<a href=http://www.wordpress.org/ >', 472 ), 473 array( 474 '<a href="[url]plugins/">', 475 '<a href="http://www.wordpress.org/plugins/">', 476 ), 477 array( 478 '<a href="bad[url]">', 479 '<a href="//www.wordpress.org/">', 480 ), 481 array( 482 '<a onclick="bad[url]">', 483 '<a onclick="bad[url]">', 484 ), 457 485 ); 458 486 }
Note: See TracChangeset
for help on using the changeset viewer.