Options: Use most appropriate language in the test suite.

The test suite's opinion of cancer should be clear.

Reverts r42659.

See #43207, #38176




git-svn-id: https://develop.svn.wordpress.org/trunk@42663 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2018-02-07 20:58:21 +00:00
parent fa266b4724
commit 2c6f1b18f4
1 changed files with 5 additions and 5 deletions

View File

@ -47,11 +47,11 @@ class Tests_Option_Registration extends WP_UnitTestCase {
public function test_register_with_default() {
register_setting(
'test_group', 'test_default', array(
'default' => 'Eat your greens',
'default' => 'Fuck Cancer',
)
);
$this->assertEquals( 'Eat your greens', get_option( 'test_default' ) );
$this->assertEquals( 'Fuck Cancer', get_option( 'test_default' ) );
}
/**
@ -60,11 +60,11 @@ class Tests_Option_Registration extends WP_UnitTestCase {
public function test_register_with_default_override() {
register_setting(
'test_group', 'test_default', array(
'default' => 'Eat your greens',
'default' => 'Fuck Cancer',
)
);
$this->assertEquals( 'Ice cream is better', get_option( 'test_default', 'Ice cream is better' ) );
$this->assertEquals( 'Fuck Leukemia', get_option( 'test_default', 'Fuck Leukemia' ) );
}
/**
@ -101,7 +101,7 @@ class Tests_Option_Registration extends WP_UnitTestCase {
public function test_unregister_setting_removes_default() {
register_setting(
'test_group', 'test_default', array(
'default' => 'Eat your greens',
'default' => 'Fuck Cancer',
)
);