mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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:
parent
7ef4f7c197
commit
1b5f02c558
@ -324,7 +324,7 @@ class Tests_Cache extends WP_UnitTestCase {
|
||||
wp_cache_replace( $key, $val2 );
|
||||
$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 ) );
|
||||
|
||||
// Make sure $fake_key is not stored.
|
||||
|
@ -245,7 +245,7 @@ class Tests_Cron extends WP_UnitTestCase {
|
||||
$hook = __FUNCTION__;
|
||||
$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 );
|
||||
$this->assertSame( 0, $unschedule_hook );
|
||||
$this->assertFalse( wp_next_scheduled( $hook ) );
|
||||
|
@ -171,7 +171,7 @@ class Tests_Mail extends WP_UnitTestCase {
|
||||
$this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body' ) );
|
||||
|
||||
// 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.
|
||||
$this->assertFalse( wp_mail( 'invalid.address', 'subject', 'body', '', array() ) );
|
||||
|
@ -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
|
||||
* @dataProvider data_delete_does_not_trigger_error_if_no_meta_values
|
||||
|
Loading…
x
Reference in New Issue
Block a user