Coding Standards: Fix WPCS issue in [45990].
git-svn-id: https://develop.svn.wordpress.org/trunk@46019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cda102f72f
commit
bd299597d5
@ -76,7 +76,7 @@ class Tests_Rel_No_Follow extends WP_UnitTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function test_append_no_follow_with_valueless_attribute() {
|
public function test_append_no_follow_with_valueless_attribute() {
|
||||||
$content = '<p>This is some cool <a href="demo.com" download rel="hola">Code</a></p>';
|
$content = '<p>This is some cool <a href="demo.com" download rel="hola">Code</a></p>';
|
||||||
$expected = '<p>This is some cool <a href=\"demo.com\" download rel=\"hola nofollow\">Code</a></p>';
|
$expected = '<p>This is some cool <a href=\"demo.com\" download rel=\"hola nofollow\">Code</a></p>';
|
||||||
$this->assertEquals( $expected, wp_rel_nofollow( $content ) );
|
$this->assertEquals( $expected, wp_rel_nofollow( $content ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user