- Timestamp:
- 01/29/2019 09:28:57 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPTargetedLinkRel.php
r44691 r44714 84 84 $this->assertEquals( $expected, wp_targeted_link_rel( $content ) ); 85 85 } 86 87 /** 88 * Ensure default content filters are added. 89 * 90 * @ticket 45292. 91 */ 92 public function test_wp_targeted_link_rel_filters_run() { 93 $content = '<p>Links: <a href="/" target="_blank">No rel</a></p>'; 94 $expected = '<p>Links: <a href="/" target="_blank" rel="noopener noreferrer">No rel</a></p>'; 95 96 $post = $this->factory()->post->create_and_get( 97 array( 98 'post_content' => $content, 99 ) 100 ); 101 102 $this->assertEquals( $expected, $post->post_content ); 103 } 86 104 }
Note: See TracChangeset
for help on using the changeset viewer.