diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index 060d32d62c74df648590fe8c559b824437c2ed22..1b354d501ac60d881464ce802ef74edd2a2b0443 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -77,7 +77,6 @@ blockpromoted blockquotes blockrecipe blockrelated -blocktest bodyless boing bovigo @@ -254,11 +253,9 @@ fdiv fieldable fieldapi fieldblock -fieldbody fieldgroup fieldgroups fieldlayout -fieldlinks fieldnames fieldsets filemime @@ -703,17 +700,10 @@ tappable taskless tcomment templating -testajax -testblock -testbody testbot testbots testcase -testcontent -testcontextawareblock -testdialog testgroups -testkey testlogger testsuite testsuites diff --git a/core/modules/block/tests/src/Functional/BlockUiTest.php b/core/modules/block/tests/src/Functional/BlockUiTest.php index d555b20cdd3025c8c9bcd07456f117ece22f3202..715a798bea8f82e43f88af9492d561f1d5138804 100644 --- a/core/modules/block/tests/src/Functional/BlockUiTest.php +++ b/core/modules/block/tests/src/Functional/BlockUiTest.php @@ -10,6 +10,7 @@ use Drupal\Tests\BrowserTestBase; // cspell:ignore displaymessage scriptalertxsssubjectscript +// cspell:ignore testcontextawareblock /** * Tests that the block configuration UI exists and stores data correctly. diff --git a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php index 36cf12e2a9bb1f1a2057e6b5297d5903866e35f3..f0602f0b5ce6b861304223778a583970b1c3cc11 100644 --- a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php +++ b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php @@ -8,6 +8,8 @@ use Drupal\block_content\Entity\BlockContent; use Drupal\Core\Database\Database; +// cspell:ignore testblock + /** * Create a block and test saving it. * diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiModulesTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiModulesTest.php index b27453b8fb3ab56f8552ce63b2cd078945ddceb9..a2838a404d3784f97aebbd9bd35dae8fc0cc6ce4 100644 --- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiModulesTest.php +++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiModulesTest.php @@ -10,7 +10,7 @@ use Drupal\field\Entity\FieldStorageConfig; use Drupal\node\Entity\NodeType; -// cspell:ignore tuvan +// cspell:ignore testcontent tuvan /** * Translate settings and entities to various languages. diff --git a/core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php b/core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php index 71ac45c6afb5416a243a6762937b877046faf833..78d36401b078e98e86c5b9887304083b4c0363ca 100644 --- a/core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php +++ b/core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php @@ -11,7 +11,7 @@ * Provides a 'TestAjax' block. */ #[Block( - id: "layout_builder_test_testajax", + id: "layout_builder_test_ajax", admin_label: new TranslatableMarkup("TestAjax"), category: new TranslatableMarkup("Test") )] diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php index 89395413a821d990410501f9862628f8c62cf868..6c5d9c90bbd4e47d58d300fe4821f0b858e12d38 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php @@ -7,6 +7,8 @@ use Drupal\node\Entity\Node; use Drupal\views\Entity\View; +// cspell:ignore blocktest + /** * Tests the Layout Builder UI with blocks. * diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/AjaxBlockTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/AjaxBlockTest.php index 6e72c8b572cc154363574f9ef5566c7a6a000c4f..220a61ad1d2ed92e4335792f20edafaa75fdf2ea 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/AjaxBlockTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/AjaxBlockTest.php @@ -104,8 +104,8 @@ public function testAddAjaxBlock(): void { // Then add the block. $assert_session->waitForElementVisible('named', ['button', 'Add block'])->press(); $assert_session->assertWaitOnAjaxRequest(); - $assert_session->waitForElementVisible('css', '.block-layout-builder-test-testajax'); - $block_elements = $this->cssSelect('.block-layout-builder-test-testajax'); + $assert_session->waitForElementVisible('css', '.block-layout-builder-test-ajax'); + $block_elements = $this->cssSelect('.block-layout-builder-test-ajax'); // Should be exactly one of these in there. $this->assertCount(1, $block_elements); $assert_session->pageTextContains('Every word is like an unnecessary stain on silence and nothingness.'); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php index b1bb5c8706eb6d183c214c3c1bd96c6e2c1d8877..e19cc16bcadb059e98a85f08db02583e7ad5e11c 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php @@ -9,6 +9,8 @@ use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; use Drupal\Tests\system\Traits\OffCanvasTestTrait; +// cspell:ignore testbody + /** * Tests toggling of content preview. * diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php index 3c6619b7480a97221be52424e707baff80c63754..6003c0c11d140a76cc98deabc024dc9eab5ed25b 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php @@ -8,6 +8,8 @@ use Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay; use Drupal\Tests\system\Functional\Cache\AssertPageCacheContextsAndTagsTrait; +// cspell:ignore blocktest + /** * Test contextual links compatibility with the Layout Builder. * diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php index 2ed6f0f2a1f82e9e9ce39757205a787b67741dfa..8e7395796fed8196777106588eaeadfd27ebee13 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php @@ -13,6 +13,8 @@ use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; use Drupal\Tests\system\Traits\OffCanvasTestTrait; +// cspell:ignore fieldbody + /** * Tests the Layout Builder disables interactions of rendered blocks. * diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php index 5a11de6bdbdb1fe72694231ec0525ddd80054f9d..3383fbea8f54ecd9a862ff5ea9a72fa7c62c1d8d 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php @@ -8,6 +8,8 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; +// cspell:ignore fieldbody + /** * Tests the Layout Builder UI. * diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php index 716ac3fa06682c2273b677ab9ea7ccb0713a95f1..528b863a1b5beb549dcc3a8634184efb7f40cef0 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php @@ -8,6 +8,8 @@ use Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay; use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; +// cspell:ignore fieldbody fieldlinks + /** * Tests moving blocks via the form. * diff --git a/core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module b/core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module index 232c404853410dd1f0c8721656b69a348795087e..c418eb05af78f8880178c3837eb3d49a7229cd59 100644 --- a/core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module +++ b/core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module @@ -129,7 +129,7 @@ function ajax_forms_test_advanced_commands_css_callback($form, FormStateInterfac function ajax_forms_test_advanced_commands_data_callback($form, FormStateInterface $form_state) { $selector = '#data_div'; $response = new AjaxResponse(); - $response->addCommand(new DataCommand($selector, 'testkey', 'test_value')); + $response->addCommand(new DataCommand($selector, 'test_key', 'test_value')); return $response; } diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php index 4f35107353da2bdc145d657d0e327345cc706dd1..40e2461dd475042088edcfc796bca0b755692fc7 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php @@ -9,7 +9,7 @@ use Drupal\node\Entity\NodeType; use Drupal\user\Entity\User; -// cspell:ignore hola usuario +// cspell:ignore hola testblock usuario /** * Runs UpdatePathTestBase with a dump filled with content. diff --git a/core/modules/system/tests/src/Kernel/Mail/MailTest.php b/core/modules/system/tests/src/Kernel/Mail/MailTest.php index 5e6f1d2f519e7429b1b8cf1c555026f178cdcc84..444075a265516de471c198201be7b5cc52116935 100644 --- a/core/modules/system/tests/src/Kernel/Mail/MailTest.php +++ b/core/modules/system/tests/src/Kernel/Mail/MailTest.php @@ -69,10 +69,10 @@ public function testPluggableFramework(): void { $this->assertInstanceOf(TestPhpMailFailure::class, $mail_backend); // Add a module-specific mail backend. - $this->config('system.mail')->set('interface.my_module_testkey', 'test_mail_collector')->save(); + $this->config('system.mail')->set('interface.my_module_test_key', 'test_mail_collector')->save(); // Get the added MailInterface class instance. - $mail_backend = \Drupal::service('plugin.manager.mail')->getInstance(['module' => 'my_module', 'key' => 'testkey']); + $mail_backend = \Drupal::service('plugin.manager.mail')->getInstance(['module' => 'my_module', 'key' => 'test_key']); // Assert whether the added mail backend is an instance of the expected // class. diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/CommandsTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/CommandsTest.php index 48a7f9e76324efb3f9eaa93ef1494bb8f9a708eb..7073946f8eb09e1b2bb0e005faaa097dd0ecb292 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/CommandsTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/CommandsTest.php @@ -102,7 +102,7 @@ public function testAjaxCommands(): void { // Tests the 'data' command. $page->pressButton("AJAX data command: Issue command."); $this->assertTrue($page->waitFor(10, function () use ($session) { - return 'test_value' === $session->evaluateScript('window.jQuery("#data_div").data("testkey")'); + return 'test_value' === $session->evaluateScript('window.jQuery("#data_div").data("test_key")'); })); // Tests the 'html' command. diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php index c42255d5404e41d899b53ee2c5b6c78c4dbc6f27..7cb0ba26eaddcc6083dec9b8433a1cf10f6f7378 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php @@ -8,6 +8,8 @@ use Drupal\Core\Ajax\OpenModalDialogWithUrl; use Drupal\FunctionalJavascriptTests\WebDriverTestBase; +// cspell:ignore testdialog + /** * Performs tests on opening and manipulating dialogs via AJAX commands. * diff --git a/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php b/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php index bbb7efb12065cac8be0f1246d92f2651a5244091..4184a022d69692bb0e65fb9a5e9a10882a90ff45 100644 --- a/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php @@ -157,7 +157,7 @@ protected function setUpMailManager($interface = []) { public function testGetInstance(): void { $interface = [ 'default' => 'php_mail', - 'example_testkey' => 'test_mail_collector', + 'example_test_key' => 'test_mail_collector', ]; $this->setUpMailManager($interface); @@ -167,7 +167,7 @@ public function testGetInstance(): void { $this->assertInstanceOf('Drupal\Core\Mail\Plugin\Mail\PhpMail', $instance); // Test that a matching message_id returns the specified plugin instance. - $options = ['module' => 'example', 'key' => 'testkey']; + $options = ['module' => 'example', 'key' => 'test_key']; $instance = $this->mailManager->getInstance($options); $this->assertInstanceOf('Drupal\Core\Mail\Plugin\Mail\TestMailCollector', $instance); } @@ -180,7 +180,7 @@ public function testGetInstance(): void { public function testMailInRenderContext(): void { $interface = [ 'default' => 'php_mail', - 'example_testkey' => 'test_mail_collector', + 'example_test_key' => 'test_mail_collector', ]; $this->setUpMailManager($interface);