Changeset 49215 for trunk/tests/phpunit/tests/widgets/text-widget.php
- Timestamp:
- 10/19/2020 11:37:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/text-widget.php
r48937 r49215 1004 1004 1005 1005 /** 1006 * Ensure that rel="noopener noreferrer" is added to links with a target.1006 * Ensure that rel="noopener" is added to links with a target. 1007 1007 * 1008 1008 * @ticket 46421 … … 1027 1027 $output = get_echo( array( $widget, 'widget' ), array( $args, $instance ) ); 1028 1028 1029 $this->assertContains( 'rel="noopener noreferrer"', $output );1030 } 1031 1032 /** 1033 * Ensure that rel="noopener noreferrer" is not added to links without a target.1029 $this->assertContains( 'rel="noopener"', $output ); 1030 } 1031 1032 /** 1033 * Ensure that rel="noopener" is not added to links without a target. 1034 1034 * 1035 1035 * @ticket 46421 … … 1054 1054 $output = get_echo( array( $widget, 'widget' ), array( $args, $instance ) ); 1055 1055 1056 $this->assertNotContains( 'rel="noopener noreferrer"', $output );1056 $this->assertNotContains( 'rel="noopener"', $output ); 1057 1057 } 1058 1058 }
Note: See TracChangeset
for help on using the changeset viewer.