WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (2 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WPRelNoFollow.php

    r36125 r42343  
    1010     */
    1111    public function test_add_no_follow() {
    12         $content = '<p>This is some cool <a href="/">Code</a></p>';
     12        $content  = '<p>This is some cool <a href="/">Code</a></p>';
    1313        $expected = '<p>This is some cool <a href=\"/\" rel=\"nofollow\">Code</a></p>';
    1414        $this->assertEquals( $expected, wp_rel_nofollow( $content ) );
     
    1919     */
    2020    public function test_convert_no_follow() {
    21         $content = '<p>This is some cool <a href="/" rel="weird">Code</a></p>';
     21        $content  = '<p>This is some cool <a href="/" rel="weird">Code</a></p>';
    2222        $expected = '<p>This is some cool <a href=\"/\" rel=\"weird nofollow\">Code</a></p>';
    2323        $this->assertEquals( $expected, wp_rel_nofollow( $content ) );
Note: See TracChangeset for help on using the changeset viewer.