Changeset 55495 for trunk/tests/phpunit/tests/formatting/makeClickable.php
- Timestamp:
- 03/09/2023 12:18:29 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/makeClickable.php
r55289 r55495 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 … … 440 440 441 441 public function data_add_rel_ugc_in_comments() { 442 443 442 $home_url_http = set_url_scheme( home_url(), 'http' ); 444 443 $home_url_https = set_url_scheme( home_url(), 'https' ); … … 452 451 array( 453 452 'www.wordpress.org', 454 '<p><a href= \'http://www.wordpress.org\'rel="nofollow ugc">http://www.wordpress.org</a>',453 '<p><a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>', 455 454 ), 456 455 // @ticket 56444 457 456 array( 458 457 'www.example.org', 459 '<p><a href= \'http://www.example.org\'rel="nofollow ugc">http://www.example.org</a>',458 '<p><a href="http://www.example.org" rel="nofollow ugc">http://www.example.org</a>', 460 459 ), 461 460 array(
Note: See TracChangeset
for help on using the changeset viewer.