From b62e2843cf70814c43883cbba41795f365e9213f Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Tue, 1 Sep 2020 17:42:19 +0100 Subject: [PATCH] Issue #3154909 by jungle, adityasingh, nitesh624, mohrerao, rajandro, sanjayk, priyanka.sahni, ju.vanderw, tripurari: Change words 'not existing' to 'non-existent' --- core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php | 4 ++-- core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php | 4 ++-- core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php | 4 ++-- core/lib/Drupal/Core/Field/FieldItemInterface.php | 4 ++-- core/modules/book/tests/src/Functional/BookTest.php | 2 +- core/modules/dblog/tests/src/Functional/DbLogTest.php | 2 +- .../LinkNotExistingInternalConstraintValidatorTest.php | 2 +- core/modules/locale/tests/src/Functional/LocaleUpdateBase.php | 2 +- core/modules/views/tests/src/Kernel/QueryGroupByTest.php | 2 +- .../tests/src/Unit/Controller/ViewAjaxControllerTest.php | 2 +- core/modules/views/tests/src/Unit/ViewsDataTest.php | 4 ++-- .../KernelTests/Core/Entity/EntityDefinitionUpdateTest.php | 4 ++-- core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php | 2 +- .../Drupal/Tests/Component/Plugin/DefaultFactoryTest.php | 4 ++-- core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php | 2 +- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php index 833bce7507d1..dfac0158b79f 100644 --- a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php +++ b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php @@ -157,8 +157,8 @@ protected function connect() { } } else { - // Database connection failed for some other reason than the database - // not existing. + // Database connection failed for some other reason than a non-existent + // database. $this->fail(t('Failed to connect to your database server. The server reports the following message: %error.<ul><li>Is the database server running?</li><li>Does the database exist or does the database user have sufficient privileges to create the database?</li><li>Have you entered the correct database name?</li><li>Have you entered the correct username and password?</li><li>Have you entered the correct database hostname and port number?</li></ul>', ['%error' => $e->getMessage()])); return FALSE; } diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php index 6e184aea2fab..1c07dfaf382c 100644 --- a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php @@ -107,8 +107,8 @@ protected function connect() { } } else { - // Database connection failed for some other reason than the database - // not existing. + // Database connection failed for some other reason than a non-existent + // database. $this->fail(t('Failed to connect to your database server. The server reports the following message: %error.<ul><li>Is the database server running?</li><li>Does the database exist, and have you entered the correct database name?</li><li>Have you entered the correct username and password?</li><li>Have you entered the correct database hostname and port number?</li></ul>', ['%error' => $e->getMessage()])); return FALSE; } diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php index 81bdea39bbb4..1acb11941718 100644 --- a/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php +++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php @@ -103,8 +103,8 @@ protected function connect() { } } else { - // Database connection failed for some other reason than the database - // not existing. + // Database connection failed for some other reason than a non-existent + // database. $this->fail(t('Failed to connect to database. The database engine reports the following message: %error.<ul><li>Does the database file exist?</li><li>Does web server have permission to write to the database file?</li>Does the web server have permission to write to the directory the database file should be created in?</li></ul>', ['%error' => $e->getMessage()])); return FALSE; } diff --git a/core/lib/Drupal/Core/Field/FieldItemInterface.php b/core/lib/Drupal/Core/Field/FieldItemInterface.php index 8e3e52b9f488..ce171100e7be 100644 --- a/core/lib/Drupal/Core/Field/FieldItemInterface.php +++ b/core/lib/Drupal/Core/Field/FieldItemInterface.php @@ -121,7 +121,7 @@ public function getFieldDefinition(); * The property value. * * @throws \InvalidArgumentException - * If a not existing property is accessed. + * If a non-existent property is accessed. */ public function __get($property_name); @@ -136,7 +136,7 @@ public function __get($property_name); * passed instead of a plain value. * * @throws \InvalidArgumentException - * If a not existing property is set. + * If a non-existent property is set. */ public function __set($property_name, $value); diff --git a/core/modules/book/tests/src/Functional/BookTest.php b/core/modules/book/tests/src/Functional/BookTest.php index 99b4ae057917..9dd34263c10e 100644 --- a/core/modules/book/tests/src/Functional/BookTest.php +++ b/core/modules/book/tests/src/Functional/BookTest.php @@ -238,7 +238,7 @@ public function testBookExport() { $this->drupalGet('book/export/foobar/' . $this->book->id()); $this->assertSession()->statusCodeEquals(404); - // Make sure we get a 404 on a not existing book node. + // Make sure we get a 404 on a non-existent book node. $this->drupalGet('book/export/html/123'); $this->assertSession()->statusCodeEquals(404); diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php index aa8e6d158fca..bda74010e4a4 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php @@ -190,7 +190,7 @@ public function testLogEventNotFoundPage() { // Login the admin user. $this->drupalLogin($this->adminUser); - // Try to read details of not existing event. + // Try to read details of non-existent event. $this->drupalGet('admin/reports/dblog/event/999999'); // Verify 404 response. $this->assertSession()->statusCodeEquals(404); diff --git a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php index 852069c84fde..5c7ae08570bf 100644 --- a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php +++ b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php @@ -59,7 +59,7 @@ public function providerValidate() { $data[] = [$url, TRUE]; - // Not existing routed URL. + // Non-existent routed URL. $url = Url::fromRoute('example.not_existing_route'); $url_generator = $this->createMock('Drupal\Core\Routing\UrlGeneratorInterface'); diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php index d499bb7d2cd9..359a9ad5bd70 100644 --- a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php +++ b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php @@ -293,7 +293,7 @@ protected function setCurrentTranslations() { * @param string $source * Translation source string. * @param string $translation - * Translation to check. Use empty string to check for a not existing + * Translation to check. Use empty string to check for a non-existent * translation. * @param string $langcode * Language code of the language to translate to. diff --git a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php index 61b795d6aa29..831514805b32 100644 --- a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php +++ b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php @@ -294,7 +294,7 @@ public function testGroupByFieldWithCardinality() { } /** - * Tests groupby with a field not existing on some bundle. + * Tests groupby with a non-existent field on some bundle. */ public function testGroupByWithFieldsNotExistingOnBundle() { $field_storage = FieldStorageConfig::create([ diff --git a/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php b/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php index e02a16834352..f3afb26cd349 100644 --- a/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php +++ b/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php @@ -126,7 +126,7 @@ public function testMissingViewName() { } /** - * Tests with view_name and view_display_id but not existing view. + * Tests non-existent view with view_name and view_display_id. */ public function testMissingView() { $request = new Request(); diff --git a/core/modules/views/tests/src/Unit/ViewsDataTest.php b/core/modules/views/tests/src/Unit/ViewsDataTest.php index 18b7e2f96c0a..37b9fb10687d 100644 --- a/core/modules/views/tests/src/Unit/ViewsDataTest.php +++ b/core/modules/views/tests/src/Unit/ViewsDataTest.php @@ -480,7 +480,7 @@ public function testCacheCallsWithWarmCacheAndDifferentTable() { } /** - * Tests the cache calls for an not existing table: + * Tests the cache calls for an non-existent table: * * Warm cache: * - all tables @@ -518,7 +518,7 @@ public function testCacheCallsWithWarmCacheAndInvalidTable() { } /** - * Tests the cache calls for an not existing table: + * Tests the cache calls for an non-existent table: * * Warm cache: * - all tables diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php index 76014c6e8f14..33793b370ffc 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php @@ -375,7 +375,7 @@ public function testBundleFieldCreateUpdateDeleteWithoutData() { /** * Tests creating and deleting a base field if entities exist. * - * This tests deletion when there are existing entities, but not existing data + * This tests deletion when there are existing entities, but non-existent data * for the field being deleted. * * @see testBaseFieldDeleteWithExistingData() @@ -431,7 +431,7 @@ public function testBaseFieldCreateDeleteWithExistingEntities() { /** * Tests creating and deleting a bundle field if entities exist. * - * This tests deletion when there are existing entities, but not existing data + * This tests deletion when there are existing entities, but non-existent data * for the field being deleted. * * @see testBundleFieldDeleteWithExistingData() diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php index 915fe2e41784..4c7868a197bd 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php @@ -206,7 +206,7 @@ protected function doTestReadWrite($entity_type) { $this->assertTrue(isset($entity->name[0]), new FormattableMarkup('%entity_type: Name string item is set.', ['%entity_type' => $entity_type])); $this->assertFalse(isset($entity->name[1]), new FormattableMarkup('%entity_type: Second name string item is not set as it does not exist', ['%entity_type' => $entity_type])); $this->assertTrue(isset($entity->name), new FormattableMarkup('%entity_type: Name field is set.', ['%entity_type' => $entity_type])); - $this->assertFalse(isset($entity->nameInvalid), new FormattableMarkup('%entity_type: Not existing field is not set.', ['%entity_type' => $entity_type])); + $this->assertFalse(isset($entity->nameInvalid), new FormattableMarkup('%entity_type: Non-existent field is not set.', ['%entity_type' => $entity_type])); unset($entity->name[0]); $this->assertFalse(isset($entity->name[0]), new FormattableMarkup('%entity_type: Name field item is not set.', ['%entity_type' => $entity_type])); diff --git a/core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php b/core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php index 11f6c04abf35..4d1e5a3d34ca 100644 --- a/core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php +++ b/core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php @@ -69,7 +69,7 @@ public function testGetPluginClassWithMissingClassWithObjectPluginDefinition() { } /** - * Tests getPluginClass() with a not existing class definition. + * Tests getPluginClass() with a non-existent class definition. * * @covers ::getPluginClass */ @@ -80,7 +80,7 @@ public function testGetPluginClassWithNotExistingClassWithArrayPluginDefinition( } /** - * Tests getPluginClass() with a not existing class definition. + * Tests getPluginClass() with a non-existent class definition. * * @covers ::getPluginClass */ diff --git a/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php b/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php index ae94ab15e2ff..3202b0a1f157 100644 --- a/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php +++ b/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php @@ -297,7 +297,7 @@ public function testIsValidWithFailingParameterConverting() { } /** - * Tests the isValid() method with a not existing path. + * Tests the isValid() method with a non-existent path. * * @covers ::isValid */ -- GitLab