- Timestamp:
- 10/19/2020 11:37:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/custom-html-widget.php
r48937 r49215 305 305 306 306 /** 307 * Ensure that rel="noopener noreferrer" is added to links with a target.307 * Ensure that rel="noopener" is added to links with a target. 308 308 * 309 309 * @ticket 46421 … … 327 327 328 328 $output = get_echo( array( $widget, 'widget' ), array( $args, $instance ) ); 329 $this->assertContains( 'rel="noopener noreferrer"', $output );330 } 331 332 /** 333 * Ensure that rel="noopener noreferrer" is not added to links without a target.329 $this->assertContains( 'rel="noopener"', $output ); 330 } 331 332 /** 333 * Ensure that rel="noopener" is not added to links without a target. 334 334 * 335 335 * @ticket 46421 … … 353 353 354 354 $output = get_echo( array( $widget, 'widget' ), array( $args, $instance ) ); 355 $this->assertNotContains( 'rel="noopener noreferrer"', $output );355 $this->assertNotContains( 'rel="noopener"', $output ); 356 356 } 357 357
Note: See TracChangeset
for help on using the changeset viewer.