Changeset 55289 for trunk/tests/phpunit/tests/formatting/makeClickable.php
- Timestamp:
- 02/07/2023 06:52:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/makeClickable.php
r53562 r55289 109 109 ); 110 110 $urls_expected = array( 111 '<a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>',112 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>. Alice!',113 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>, said Alice.',114 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>; said Alice.',115 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>: said Alice.',116 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>) said Alice.',111 "<a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>", 112 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>. Alice!", 113 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>, said Alice.", 114 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>; said Alice.", 115 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>: said Alice.", 116 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>) said Alice.", 117 117 ); 118 118 … … 136 136 ); 137 137 $urls_expected = array( 138 '<a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>',139 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>.',140 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>,',141 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>;',142 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>:',143 'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>)',138 "<a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>", 139 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>.", 140 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>,", 141 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>;", 142 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>:", 143 "There was a spoon named <a href='http://www.wordpress.org' rel=\"nofollow\">http://www.wordpress.org</a>)", 144 144 ); 145 145 … … 218 218 ); 219 219 $urls_expected = array( 220 'Example: WordPress, test (some text), I love example.com (<a href="http://example.org" rel="nofollow">http://example.org</a>), it is brilliant',220 'Example: WordPress, test (some text), I love example.com (<a href="http://example.org">http://example.org</a>), it is brilliant', 221 221 'Example: WordPress, test (some text), I love example.com (<a href="http://example.com" rel="nofollow">http://example.com</a>), it is brilliant', 222 222 'Some text followed by a bracketed link with a trailing elipsis (<a href="http://example.com" rel="nofollow">http://example.com</a>)...', … … 422 422 /** 423 423 * @ticket 48022 424 * @ticket 56444 424 425 * @dataProvider data_add_rel_ugc_in_comments 425 426 */ … … 439 440 440 441 public function data_add_rel_ugc_in_comments() { 442 443 $home_url_http = set_url_scheme( home_url(), 'http' ); 444 $home_url_https = set_url_scheme( home_url(), 'https' ); 445 441 446 return array( 447 // @ticket 48022 442 448 array( 443 449 'http://wordpress.org', … … 446 452 array( 447 453 'www.wordpress.org', 448 '<p><a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>', 454 '<p><a href=\'http://www.wordpress.org\' rel="nofollow ugc">http://www.wordpress.org</a>', 455 ), 456 // @ticket 56444 457 array( 458 'www.example.org', 459 '<p><a href=\'http://www.example.org\' rel="nofollow ugc">http://www.example.org</a>', 460 ), 461 array( 462 $home_url_http, 463 '<a href="' . $home_url_http . '" rel="ugc">' . $home_url_http . '</a>', 464 ), 465 array( 466 $home_url_https, 467 '<a href="' . $home_url_https . '" rel="ugc">' . $home_url_https . '</a>', 449 468 ), 450 469 );
Note: See TracChangeset
for help on using the changeset viewer.