Make WordPress Core

Changeset 42667


Ignore:
Timestamp:
02/07/2018 10:41:48 PM (7 years ago)
Author:
helen
Message:

Options: Use strings in the test suite that follow community guidelines.

Also somewhat explain to future maintainers why this pairing of strings was chosen, besides this committer's musical preferences. Social opinions on cancer are fairly clear, as are commonly accepted definitions of profanity and family-friendly language.

Shout out to the close contender, which would have been particularly appropriate here: "You could be the king But watch the queen conquer".

see #43207, #38176

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/option/registration.php

    r42663 r42667  
    4848        register_setting(
    4949            'test_group', 'test_default', array(
    50                 'default' => 'Fuck Cancer',
     50                'default' => 'Got that Viper with them rally stripes',
    5151            )
    5252        );
    5353
    54         $this->assertEquals( 'Fuck Cancer', get_option( 'test_default' ) );
     54        $this->assertEquals( 'Got that Viper with them rally stripes', get_option( 'test_default' ) );
    5555    }
    5656
     
    6161        register_setting(
    6262            'test_group', 'test_default', array(
    63                 'default' => 'Fuck Cancer',
     63                'default' => 'Got that Viper with them rally stripes',
    6464            )
    6565        );
    6666
    67         $this->assertEquals( 'Fuck Leukemia', get_option( 'test_default', 'Fuck Leukemia' ) );
     67        // This set of tests/references (and a previous version) are in support of Viper007Bond.
     68        // His Viper doesn't have rally stripes, but for the sake of the Big Tymers, we'll go with it.
     69        $this->assertEquals( 'We the #1 Stunnas', get_option( 'test_default', 'We the #1 Stunnas' ) );
    6870    }
    6971
     
    102104        register_setting(
    103105            'test_group', 'test_default', array(
    104                 'default' => 'Fuck Cancer',
     106                'default' => 'Got that Viper with them rally stripes',
    105107            )
    106108        );
Note: See TracChangeset for help on using the changeset viewer.