From 3b668ff177e2872500060e657cd31dbe853541bc Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Fri, 31 Jul 2020 17:32:15 +0100 Subject: [PATCH] Issue #3138766 by mohrerao, longwave, sja112, jameszhang023, Lal_, ravi.shankar, jungle, xjm: Fix "Don't" relevant typos in core --- core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php | 6 +++--- .../migrate_prepare_row_test.module | 4 ++-- .../src/Plugin/migrate/process/TestSkipRowProcess.php | 2 +- .../modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php | 6 +++--- .../search/tests/src/Functional/SearchPageTextTest.php | 2 +- .../tests/modules/session_test/session_test.routing.yml | 6 +++--- .../session_test/src/Controller/SessionTestController.php | 2 +- .../system/tests/src/Functional/Session/SessionTest.php | 2 +- .../KernelTests/Core/Config/ConfigFileContentTest.php | 4 ++-- core/themes/claro/css/components/tabledrag.css | 2 +- core/themes/claro/css/components/tabledrag.pcss.css | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php b/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php index 51f1a728af12..66c069001365 100644 --- a/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php +++ b/core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php @@ -67,10 +67,10 @@ public function setUp(): void { $this->savePaintings([ ['colors' => ['red'], 'shapes' => ['triangle'], 'title' => 'FIND'], ['colors' => ['orange'], 'shapes' => ['circle'], 'title' => 'FIND'], - ['colors' => ['orange'], 'shapes' => ['triangle'], 'title' => 'DONT_FIND'], + ['colors' => ['orange'], 'shapes' => ['triangle'], 'title' => 'DO_NOT_FIND'], ['colors' => ['yellow'], 'shapes' => ['square'], 'title' => 'FIND'], - ['colors' => ['yellow'], 'shapes' => ['triangle'], 'title' => 'DONT_FIND'], - ['colors' => ['orange'], 'shapes' => ['square'], 'title' => 'DONT_FIND'], + ['colors' => ['yellow'], 'shapes' => ['triangle'], 'title' => 'DO_NOT_FIND'], + ['colors' => ['orange'], 'shapes' => ['square'], 'title' => 'DO_NOT_FIND'], ]); $this->nodeStorage = $this->container->get('entity_type.manager')->getStorage('node'); diff --git a/core/modules/migrate/tests/modules/migrate_prepare_row_test/migrate_prepare_row_test.module b/core/modules/migrate/tests/modules/migrate_prepare_row_test/migrate_prepare_row_test.module index 1da25f5a6d5c..6b7bc8c25f02 100644 --- a/core/modules/migrate/tests/modules/migrate_prepare_row_test/migrate_prepare_row_test.module +++ b/core/modules/migrate/tests/modules/migrate_prepare_row_test/migrate_prepare_row_test.module @@ -21,8 +21,8 @@ function migrate_prepare_row_test_migrate_prepare_row(Row $row, MigrateSourceInt // Record mapping but don't record a message. throw new MigrateSkipRowException('', TRUE); } - elseif ($data == 'skip_and_dont_record') { + elseif ($data == 'skip_and_do_not_record') { // Don't record mapping but record a message. - throw new MigrateSkipRowException('skip_and_dont_record message', FALSE); + throw new MigrateSkipRowException('skip_and_do_not_record message', FALSE); } } diff --git a/core/modules/migrate/tests/modules/migrate_prepare_row_test/src/Plugin/migrate/process/TestSkipRowProcess.php b/core/modules/migrate/tests/modules/migrate_prepare_row_test/src/Plugin/migrate/process/TestSkipRowProcess.php index 4822113b3254..b1540888ac1f 100644 --- a/core/modules/migrate/tests/modules/migrate_prepare_row_test/src/Plugin/migrate/process/TestSkipRowProcess.php +++ b/core/modules/migrate/tests/modules/migrate_prepare_row_test/src/Plugin/migrate/process/TestSkipRowProcess.php @@ -25,7 +25,7 @@ public function transform($value, MigrateExecutableInterface $migrate_executable if ($data == 'skip_and_record (use plugin)') { throw new MigrateSkipRowException('', TRUE); } - elseif ($data == 'skip_and_dont_record (use plugin)') { + elseif ($data == 'skip_and_do_not_record (use plugin)') { throw new MigrateSkipRowException('', FALSE); } return $value; diff --git a/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php b/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php index c30577eb808c..8de7fb2022fd 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php @@ -33,7 +33,7 @@ public function testPrepareRowSkip() { 'plugin' => 'embedded_data', 'data_rows' => [ ['id' => '1', 'data' => 'skip_and_record'], - ['id' => '2', 'data' => 'skip_and_dont_record'], + ['id' => '2', 'data' => 'skip_and_do_not_record'], ], 'ids' => [ 'id' => ['type' => 'string'], @@ -69,7 +69,7 @@ public function testPrepareRowSkip() { $messages = $id_map_plugin->getMessages(['id' => 2])->fetchAll(); $this->assertCount(1, $messages); $message = reset($messages); - $this->assertEquals('skip_and_dont_record message', $message->message); + $this->assertEquals('skip_and_do_not_record message', $message->message); $this->assertEquals(MigrationInterface::MESSAGE_INFORMATIONAL, $message->level); // Insert a custom processor in the process flow. @@ -80,7 +80,7 @@ public function testPrepareRowSkip() { // Change data to avoid triggering again hook_migrate_prepare_row(). $definition['source']['data_rows'] = [ ['id' => '1', 'data' => 'skip_and_record (use plugin)'], - ['id' => '2', 'data' => 'skip_and_dont_record (use plugin)'], + ['id' => '2', 'data' => 'skip_and_do_not_record (use plugin)'], ]; $migration = \Drupal::service('plugin.manager.migration')->createStubMigration($definition); diff --git a/core/modules/search/tests/src/Functional/SearchPageTextTest.php b/core/modules/search/tests/src/Functional/SearchPageTextTest.php index 6af5f8956f25..219e23e1f568 100644 --- a/core/modules/search/tests/src/Functional/SearchPageTextTest.php +++ b/core/modules/search/tests/src/Functional/SearchPageTextTest.php @@ -56,7 +56,7 @@ protected function setUp(): void { public function testSearchLabelXSS() { $this->drupalLogin($this->drupalCreateUser(['administer search'])); - $keys['label'] = '<script>alert("Dont Panic");</script>'; + $keys['label'] = '<script>alert("Don\'t Panic");</script>'; $this->drupalPostForm('admin/config/search/pages/manage/node_search', $keys, t('Save search page')); $this->drupalLogin($this->searchingUser); diff --git a/core/modules/system/tests/modules/session_test/session_test.routing.yml b/core/modules/system/tests/modules/session_test/session_test.routing.yml index 25a9321181ea..ba7d08667ca3 100644 --- a/core/modules/system/tests/modules/session_test/session_test.routing.yml +++ b/core/modules/system/tests/modules/session_test/session_test.routing.yml @@ -66,11 +66,11 @@ session_test.set_message: requirements: _access: 'TRUE' -session_test.set_message_but_dont_save: - path: '/session-test/set-message-but-dont-save' +session_test.set_message_but_do_not_save: + path: '/session-test/set-message-but-do-not-save' defaults: _title: 'Set message but do not save session' - _controller: '\Drupal\session_test\Controller\SessionTestController::setMessageButDontSave' + _controller: '\Drupal\session_test\Controller\SessionTestController::setMessageButDoNotSave' requirements: _access: 'TRUE' diff --git a/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php b/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php index 95be208a3ed2..7acc00dfd858 100644 --- a/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php +++ b/core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php @@ -124,7 +124,7 @@ public function setMessage() { * @return string * A notification message. */ - public function setMessageButDontSave() { + public function setMessageButDoNotSave() { \Drupal::service('session_handler.write_safe')->setSessionWritable(FALSE); $this->setMessage(); return ['#markup' => '']; diff --git a/core/modules/system/tests/src/Functional/Session/SessionTest.php b/core/modules/system/tests/src/Functional/Session/SessionTest.php index 8388ad5a91c1..49cee1e714f8 100644 --- a/core/modules/system/tests/src/Functional/Session/SessionTest.php +++ b/core/modules/system/tests/src/Functional/Session/SessionTest.php @@ -213,7 +213,7 @@ public function testEmptyAnonymousSession() { $this->assertNull($this->drupalGetHeader('Set-Cookie'), 'New session was not started.'); // Verify that no session is created if drupal_save_session(FALSE) is called. - $this->drupalGet('session-test/set-message-but-dont-save'); + $this->drupalGet('session-test/set-message-but-do-not-save'); $this->assertSessionCookie(FALSE); $this->assertSessionEmpty(TRUE); diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php index 515d60ac0427..7e71cf75498f 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php @@ -111,10 +111,10 @@ public function testReadWriteConfig() { $this->assertEqual($config->get($nested_array_key), $array_value, 'Nested array configuration value found.'); // Read a top level value that doesn't exist. - $this->assertNull($config->get('i_dont_exist'), 'Non-existent top level value returned NULL.'); + $this->assertNull($config->get('i_do_not_exist'), 'Non-existent top level value returned NULL.'); // Read a nested value that doesn't exist. - $this->assertNull($config->get('i.dont.exist'), 'Non-existent nested value returned NULL.'); + $this->assertNull($config->get('i.do.not.exist'), 'Non-existent nested value returned NULL.'); // Read false value. $this->assertFalse($config->get($false_key), "Boolean FALSE value returned the FALSE."); diff --git a/core/themes/claro/css/components/tabledrag.css b/core/themes/claro/css/components/tabledrag.css index bf1e73def61c..a53f43d8ebf4 100644 --- a/core/themes/claro/css/components/tabledrag.css +++ b/core/themes/claro/css/components/tabledrag.css @@ -92,7 +92,7 @@ body.drag { border-bottom: none; } -/* Dont display the abbreviation of 'add-new' table rows. */ +/* Don't display the abbreviation of 'add-new' table rows. */ .add-new .tabledrag-changed { display: none; diff --git a/core/themes/claro/css/components/tabledrag.pcss.css b/core/themes/claro/css/components/tabledrag.pcss.css index 1f95b68087dc..b258d112eb77 100644 --- a/core/themes/claro/css/components/tabledrag.pcss.css +++ b/core/themes/claro/css/components/tabledrag.pcss.css @@ -36,7 +36,7 @@ body.drag { .tabledrag-changed.tabledrag-changed { border-bottom: none; } -/* Dont display the abbreviation of 'add-new' table rows. */ +/* Don't display the abbreviation of 'add-new' table rows. */ .add-new .tabledrag-changed { display: none; } -- GitLab