Docs: Spell "non-existent" in a consistent way.

See #52628.

git-svn-id: https://develop.svn.wordpress.org/trunk@50610 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-03-27 13:32:55 +00:00
parent 7ef4f7c197
commit 1b5f02c558
4 changed files with 4 additions and 4 deletions

View File

@ -324,7 +324,7 @@ class Tests_Cache extends WP_UnitTestCase {
wp_cache_replace( $key, $val2 ); wp_cache_replace( $key, $val2 );
$this->assertSame( $val2, wp_cache_get( $key ) ); $this->assertSame( $val2, wp_cache_get( $key ) );
// Non-existant key should fail. // Non-existent key should fail.
$this->assertFalse( wp_cache_replace( $fake_key, $val1 ) ); $this->assertFalse( wp_cache_replace( $fake_key, $val1 ) );
// Make sure $fake_key is not stored. // Make sure $fake_key is not stored.

View File

@ -245,7 +245,7 @@ class Tests_Cron extends WP_UnitTestCase {
$hook = __FUNCTION__; $hook = __FUNCTION__;
$unrelated_hook = __FUNCTION__ . '_two'; $unrelated_hook = __FUNCTION__ . '_two';
// Attempt to clear schedule on non-existant hook. // Attempt to clear schedule on non-existent hook.
$unschedule_hook = wp_unschedule_hook( $hook ); $unschedule_hook = wp_unschedule_hook( $hook );
$this->assertSame( 0, $unschedule_hook ); $this->assertSame( 0, $unschedule_hook );
$this->assertFalse( wp_next_scheduled( $hook ) ); $this->assertFalse( wp_next_scheduled( $hook ) );

View File

@ -171,7 +171,7 @@ class Tests_Mail extends WP_UnitTestCase {
$this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body' ) ); $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body' ) );
// Non-fatal errors. // Non-fatal errors.
$this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body', "Cc: invalid-address\nBcc: @invalid.address", ABSPATH . '/non-existant-file.html' ) ); $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body', "Cc: invalid-address\nBcc: @invalid.address", ABSPATH . '/non-existent-file.html' ) );
// Fatal errors. // Fatal errors.
$this->assertFalse( wp_mail( 'invalid.address', 'subject', 'body', '', array() ) ); $this->assertFalse( wp_mail( 'invalid.address', 'subject', 'body', '', array() ) );

View File

@ -1053,7 +1053,7 @@ class WP_Test_REST_Post_Meta_Fields extends WP_Test_REST_TestCase {
} }
/** /**
* Ensure deleting non-existant meta data behaves gracefully. * Ensure deleting non-existent meta data behaves gracefully.
* *
* @ticket 52787 * @ticket 52787
* @dataProvider data_delete_does_not_trigger_error_if_no_meta_values * @dataProvider data_delete_does_not_trigger_error_if_no_meta_values