Add missing `@group` to `Tests_Rel_No_Follow`.
See #9959. git-svn-id: https://develop.svn.wordpress.org/trunk@35505 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
14cd5cf3ed
commit
00ee9a62d1
|
@ -1,15 +1,22 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @ticket 9959
|
||||
* @group formatting
|
||||
*/
|
||||
class Tests_Rel_No_Follow extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 9959
|
||||
*/
|
||||
public function test_add_no_follow() {
|
||||
$content = '<p>This is some cool <a href="/">Code</a></p>';
|
||||
$expected = '<p>This is some cool <a href=\"/\" rel=\"nofollow\">Code</a></p>';
|
||||
$this->assertEquals( $expected, wp_rel_nofollow( $content ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 9959
|
||||
*/
|
||||
public function test_convert_no_follow() {
|
||||
$content = '<p>This is some cool <a href="/" rel="weird">Code</a></p>';
|
||||
$expected = '<p>This is some cool <a href=\"/\" rel=\"weird nofollow\">Code</a></p>';
|
||||
|
|
Loading…
Reference in New Issue