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:
parent
fa266b4724
commit
2c6f1b18f4
@ -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',
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user