Changeset 42343 for trunk/tests/phpunit/tests/formatting/WPRelNoFollow.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPRelNoFollow.php
r36125 r42343 10 10 */ 11 11 public function test_add_no_follow() { 12 $content = '<p>This is some cool <a href="/">Code</a></p>';12 $content = '<p>This is some cool <a href="/">Code</a></p>'; 13 13 $expected = '<p>This is some cool <a href=\"/\" rel=\"nofollow\">Code</a></p>'; 14 14 $this->assertEquals( $expected, wp_rel_nofollow( $content ) ); … … 19 19 */ 20 20 public function test_convert_no_follow() { 21 $content = '<p>This is some cool <a href="/" rel="weird">Code</a></p>';21 $content = '<p>This is some cool <a href="/" rel="weird">Code</a></p>'; 22 22 $expected = '<p>This is some cool <a href=\"/\" rel=\"weird nofollow\">Code</a></p>'; 23 23 $this->assertEquals( $expected, wp_rel_nofollow( $content ) );
Note: See TracChangeset
for help on using the changeset viewer.