diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index 1af20184daa2234b9d94739678eed2d90924d6c4..b8d62f00618adff7329aab7ae073afa86963849e 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -35,7 +35,6 @@ autoplay autoreply autosubmit backlink -backlinks backported backporting backports @@ -58,14 +57,12 @@ bigpipe bitmask bkmgtpezy blockarticles -blockbasic blockcontent blockfooter blocknodebundle blockquotes blockrecipe blockrelated -bodyless boing bovigo brotli @@ -215,7 +212,6 @@ etag eurozone evenodd eventhandler -exitcode expirable extlink extrasmall @@ -257,7 +253,6 @@ fudgy fulldata fulldate fulltext -funic gabilondo gids gloop @@ -265,7 +260,6 @@ greeking gripsmall groupable groupby -groupname groupwise guzzlehttp hande @@ -301,7 +295,6 @@ javascripts jessebeach jqueryui jsonlint -jssdk justinrainbow keyevent keypresses @@ -316,7 +309,6 @@ lified lightninggreen linkability linkback -linkgenerator linkification linkset linktext @@ -331,15 +323,12 @@ lolspeak longblob longerthan longtext -loquesea lrdd lstitle ltitle lzma mainpage -mank maryjane -matchout maximumred maxlifetime maynot @@ -368,11 +357,9 @@ moderatable modernizr modulenarrow mojito -montag msgctxt msgid msgstr -mucho mulrev mulrevpub multibuys @@ -382,7 +369,6 @@ multisite multistep multivalue multivalued -muuuh myclabs mysqladmin mysqldump @@ -398,8 +384,6 @@ nids nightwatch nightwatchjs nikic -nmsgid -nmsgstr nntp noadd nocache @@ -496,7 +480,6 @@ quickstart quinlan qvalue qvalues -qwer ralouphie rasterizable rasterizes @@ -552,7 +535,6 @@ sess settingstray shorterthan shortlink -silverlight singlebyte sirbrillig sisko @@ -566,7 +548,6 @@ smtps somecompany sortablejs specialchars -spiffiness splitbutton splitbuttons squaresmall @@ -669,7 +650,6 @@ toplevel torder touchevents trackback -trailingslash transferthick translatables trayblock @@ -731,10 +711,8 @@ webservers widthx wordsafe writeln -wwwrun xbap xbitmap -xfbml xmlhttp xmlhttprequest xpsdocument diff --git a/core/modules/block_content/tests/src/Kernel/BlockContentDeletionTest.php b/core/modules/block_content/tests/src/Kernel/BlockContentDeletionTest.php index b76a33161e3366a7d14e4cf97c0fee275c7d46d9..26aedaa9ee5f6b80576eb02bcd36c14a163d4adf 100644 --- a/core/modules/block_content/tests/src/Kernel/BlockContentDeletionTest.php +++ b/core/modules/block_content/tests/src/Kernel/BlockContentDeletionTest.php @@ -42,8 +42,8 @@ public function testDeletingBlockContentShouldClearPluginCache(): void { // Create a block content type. $block_content_type = BlockContentType::create([ 'id' => 'spiffy', - 'label' => 'Mucho spiffy', - 'description' => "Provides a block type that increases your site's spiffiness by upto 11%", + 'label' => 'Very spiffy', + 'description' => "Provides a block type that increases your site's spiffy rating by upto 11%", ]); $block_content_type->save(); // And a block content entity. diff --git a/core/modules/block_content/tests/src/Kernel/BlockContentDeriverTest.php b/core/modules/block_content/tests/src/Kernel/BlockContentDeriverTest.php index edd3e0e096c15a5994c3d94ffc1def8859d47907..658a45221ed9df4adf21b352ecf9bdc022d78a6a 100644 --- a/core/modules/block_content/tests/src/Kernel/BlockContentDeriverTest.php +++ b/core/modules/block_content/tests/src/Kernel/BlockContentDeriverTest.php @@ -67,8 +67,8 @@ public function testReusableBlocksOnlyAreDerived(): void { // Create a block content type. $block_content_type = BlockContentType::create([ 'id' => 'spiffy', - 'label' => 'Mucho spiffy', - 'description' => "Provides a block type that increases your site's spiffiness by up to 11%", + 'label' => 'Very spiffy', + 'description' => "Provides a block type that increases your site's spiffy rating by up to 11%", ]); $block_content_type->save(); // And a block content entity. diff --git a/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php b/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php index 87592d981b6ab64fdfbae6b08bbe669227b02fb6..faec7dff29e2da64bb4122de68c7268a39b1864f 100644 --- a/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php +++ b/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php @@ -75,8 +75,8 @@ protected function setUp(): void { // Create a block content type. $block_content_type = BlockContentType::create([ 'id' => 'spiffy', - 'label' => 'Mucho spiffy', - 'description' => "Provides a block type that increases your site's spiffiness by up to 11%", + 'label' => 'Very spiffy', + 'description' => "Provides a block type that increases your site's spiffy rating by up to 11%", ]); $block_content_type->save(); $this->entityTypeManager = $this->container->get('entity_type.manager'); diff --git a/core/modules/block_content/tests/src/Kernel/BlockContentTest.php b/core/modules/block_content/tests/src/Kernel/BlockContentTest.php index 8cc3f2b679fc24f4d58d71ceed866b3ea1570d6e..9c402c586879135c31d50629fd382e7723c54b1a 100644 --- a/core/modules/block_content/tests/src/Kernel/BlockContentTest.php +++ b/core/modules/block_content/tests/src/Kernel/BlockContentTest.php @@ -43,8 +43,8 @@ public function testOperationLinks(): void { // Create a block content type. BlockContentType::create([ 'id' => 'spiffy', - 'label' => 'Mucho spiffy', - 'description' => "Provides a block type that increases your site's spiffiness by up to 11%", + 'label' => 'Very spiffy', + 'description' => "Provides a block type that increases your site's spiffy rating by up to 11%", ])->save(); // And a block content entity. $block_content = BlockContent::create([ diff --git a/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php b/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php index 931902a4db8738f1afeb256468306cc7df3a9514..bf333d423cd7b9ce7fd822e00e4de86833535305 100644 --- a/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php +++ b/core/modules/config/tests/src/Functional/LanguageNegotiationFormOverrideTest.php @@ -6,6 +6,8 @@ use Drupal\Tests\BrowserTestBase; +// cspell:ignore loquesea + /** * Tests language-negotiation overrides are not on language-negotiation form. * diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php index bc5f6e603e21236037a3e85445eb003a9a4ae215..363c722141cb2c634be499c5963e00309c7528e8 100644 --- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php +++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php @@ -734,15 +734,15 @@ public function testUrlFilter(): void { '<a href="mailto:' . $email_with_plus_sign . '">' . $email_with_plus_sign . '</a>' => TRUE, ], // URI parts and special characters. - 'http://trailingslash.com/ or www.trailingslash.com/ + 'http://trailing-slash.com/ or www.trailing-slash.com/ http://host.com/some/path?query=foo&bar[baz]=beer#fragment or www.host.com/some/path?query=foo&bar[baz]=beer#fragment http://twitter.com/#!/example/status/22376963142324226 http://example.com/@user/ ftp://user:pass@ftp.example.com/~home/dir1 sftp://user@nonstandardport:222/dir ssh://192.168.0.100/srv/git/drupal.git' => [ - '<a href="http://trailingslash.com/">http://trailingslash.com/</a>' => TRUE, - '<a href="http://www.trailingslash.com/">www.trailingslash.com/</a>' => TRUE, + '<a href="http://trailing-slash.com/">http://trailing-slash.com/</a>' => TRUE, + '<a href="http://www.trailing-slash.com/">www.trailing-slash.com/</a>' => TRUE, '<a href="http://host.com/some/path?query=foo&bar[baz]=beer#fragment">http://host.com/some/path?query=foo&bar[baz]=beer#fragment</a>' => TRUE, '<a href="http://www.host.com/some/path?query=foo&bar[baz]=beer#fragment">www.host.com/some/path?query=foo&bar[baz]=beer#fragment</a>' => TRUE, '<a href="http://twitter.com/#!/example/status/22376963142324226">http://twitter.com/#!/example/status/22376963142324226</a>' => TRUE, diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php index c51a5896882cc0e43c9fa9267fa317d0f011b879..6931a733d96d7db38cd18503748f7a6a062f4d25 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php @@ -8,6 +8,8 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; +// cspell:ignore blockbasic + /** * Base class for testing inline blocks. */ diff --git a/core/modules/layout_builder/tests/src/Kernel/SectionListTestBase.php b/core/modules/layout_builder/tests/src/Kernel/SectionListTestBase.php index f94e27d784fda5304edef909d1f8544ad1871160..08d844b5e68e7dd3ca9a956bc092509769a7fe50 100644 --- a/core/modules/layout_builder/tests/src/Kernel/SectionListTestBase.php +++ b/core/modules/layout_builder/tests/src/Kernel/SectionListTestBase.php @@ -186,7 +186,7 @@ public function testClone(): void { $this->assertSame(['setting_1' => 'Default'], $this->sectionList->getSection(0)->getLayoutSettings()); $new_section_storage = clone $this->sectionList; - $new_section_storage->getSection(0)->setLayoutSettings(['asdf' => 'qwer']); + $new_section_storage->getSection(0)->setLayoutSettings(['asdf' => 'foo']); $this->assertSame(['setting_1' => 'Default'], $this->sectionList->getSection(0)->getLayoutSettings()); } diff --git a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php index caa931fb8ecb86536b670635010fb1f1b38f3884..a088afb1de8e52aee7c74ddfeb2b0ce1cc354d61 100644 --- a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php @@ -10,7 +10,8 @@ use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; -// cspell:ignore chien chiens deutsch januari lundi moutons műveletek svibanj +// cspell:ignore chien chiens deutsch januari lundi montag moutons műveletek +// cspell:ignore svibanj /** * Tests the import of locale files. diff --git a/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php b/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php index 52ab8f7da856993b433ad3ff4e0d91a4aea5b486..01c0edea10d26b0992a3cd5aa32060663e4362ea 100644 --- a/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php +++ b/core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php @@ -9,7 +9,7 @@ use Drupal\Core\StringTranslation\PluralTranslatableMarkup; use Drupal\Tests\BrowserTestBase; -// cspell:ignore heure heures jours lundi ponedjeljak +// cspell:ignore nmsgid nmsgstr heure heures jours lundi ponedjeljak /** * Tests plural handling for various languages. diff --git a/core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php b/core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php index 8fa7fea35777c9ffac0e3ada650ba6755b866773..fd0dce49060070d908e51622dc4ab8f5f1fecaf0 100644 --- a/core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php +++ b/core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php @@ -339,7 +339,7 @@ public static function providerTestResponseFormat() { ], ]; - $unsafe_method_bodyless_test_cases = [ + $unsafe_method_no_body_test_cases = [ 'unsafe methods without request bodies (DELETE): client requested no format, response should have the first acceptable format' => [ ['DELETE'], ['xml', 'json'], @@ -375,7 +375,7 @@ public static function providerTestResponseFormat() { ], ]; - return $safe_method_test_cases + $unsafe_method_bodied_test_cases + $unsafe_method_bodyless_test_cases; + return $safe_method_test_cases + $unsafe_method_bodied_test_cases + $unsafe_method_no_body_test_cases; } /** diff --git a/core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.link_generator.html.twig b/core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.link_generator.html.twig index 1b20b46e0e4fca4baa8f68ad5792372f31482fe6..36dbdafa3f7d5554c41196f2bc0133a90677d1de 100644 --- a/core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.link_generator.html.twig +++ b/core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.link_generator.html.twig @@ -1,10 +1,10 @@ -<div>link via the linkgenerator: {{ link('register', test_url) }}</div> -<div>link via the linkgenerator: {{ link('register', test_url, {'foo': 'bar'}) }}</div> -<div>link via the linkgenerator: {{ link('register', test_url_attribute, {'id': 'kitten'}) }}</div> -<div>link via the linkgenerator: {{ link('register', 'route:user.register', {'id': 'kitten'}) }}</div> -<div>link via the linkgenerator: {{ link('register', 'route:user.register', attributes) }}</div> +<div>link via the link generator: {{ link('register', test_url) }}</div> +<div>link via the link generator: {{ link('register', test_url, {'foo': 'bar'}) }}</div> +<div>link via the link generator: {{ link('register', test_url_attribute, {'id': 'kitten'}) }}</div> +<div>link via the link generator: {{ link('register', 'route:user.register', {'id': 'kitten'}) }}</div> +<div>link via the link generator: {{ link('register', 'route:user.register', attributes) }}</div> {% set title %}<span>register</span>{% endset %} -<div>link via the linkgenerator: {{ link(title, test_url) }}</div> +<div>link via the link generator: {{ link(title, test_url) }}</div> {% set title %}<span>register</span><svg></svg>{% endset %} -<div>link via the linkgenerator: {{ link(title, test_url) }}</div> -<div>link via the linkgenerator: {{ link('register', test_url_attribute) }} {{ link('register', test_url_attribute) }}</div> +<div>link via the link generator: {{ link(title, test_url) }}</div> +<div>link via the link generator: {{ link('register', test_url_attribute) }} {{ link('register', test_url_attribute) }}</div> diff --git a/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php b/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php index cb9806f8b093f4788254b522ca783ee9e7343eb1..2e5e2e947bbddf53852a6ffa8244b29ec96972b6 100644 --- a/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php +++ b/core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php @@ -6,7 +6,7 @@ use Drupal\Tests\BrowserTestBase; -// cspell:ignore msword +// cspell:ignore msword silverlight /** * Tests content negotiation. diff --git a/core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php b/core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php index 65380e5721b41a565de0155e31bd723c82d52646..2d446c76cfdcb53f04de7551384cc49893a0e777 100644 --- a/core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php +++ b/core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php @@ -91,14 +91,14 @@ public function testTwigLinkGenerator(): void { $generated_url = Url::fromRoute('user.register', [], ['absolute' => TRUE])->toString(TRUE)->getGeneratedUrl(); $expected = [ - 'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE])), - 'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE, 'attributes' => ['foo' => 'bar']])), - 'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar', 'id' => 'kitten']])), - 'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['id' => 'kitten']])), - 'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['class' => ['llama', 'kitten', 'panda']]])), - 'link via the linkgenerator: ' . $link_generator->generate(Markup::create('<span>register</span>'), new Url('user.register', [], ['absolute' => TRUE])), - 'link via the linkgenerator: <a href="' . $generated_url . '"><span>register</span><svg></svg></a>', - 'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])) . ' ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])), + 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE])), + 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE, 'attributes' => ['foo' => 'bar']])), + 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar', 'id' => 'kitten']])), + 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['id' => 'kitten']])), + 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['class' => ['llama', 'kitten', 'panda']]])), + 'link via the link generator: ' . $link_generator->generate(Markup::create('<span>register</span>'), new Url('user.register', [], ['absolute' => TRUE])), + 'link via the link generator: <a href="' . $generated_url . '"><span>register</span><svg></svg></a>', + 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])) . ' ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])), ]; // Verify that link() has the ability to bubble cacheability metadata: diff --git a/core/modules/views/tests/src/Functional/DefaultViewsTest.php b/core/modules/views/tests/src/Functional/DefaultViewsTest.php index a3d8afa83eab68385b1644f34931bbcd9d908112..b8dce615ceb3671ff06ef85c0abc310ff5bb9794 100644 --- a/core/modules/views/tests/src/Functional/DefaultViewsTest.php +++ b/core/modules/views/tests/src/Functional/DefaultViewsTest.php @@ -52,7 +52,7 @@ class DefaultViewsTest extends ViewTestBase { * @var array */ protected $viewArgMap = [ - 'backlinks' => [1], + 'backlink' => [1], 'taxonomy_term' => [1], 'glossary' => ['all'], ]; diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 66a65eac61c878e90bf19a6ab95adea982b91428..aaebc0f7c6c56311cca6a2552eedfcafea10aef0 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -30,6 +30,8 @@ use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\HttpFoundation\Request; +// cspell:ignore exitcode wwwrun + // Define some colors for display. // A nice calming green. const SIMPLETEST_SCRIPT_COLOR_PASS = 32; diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php index 2c3190f151499b27528db38e5fa2ab52e54425eb..166974eab4e99a73ba86feaf6df6c355aa4bec77 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php @@ -4,7 +4,7 @@ namespace Drupal\FunctionalTests\Installer; -// cspell:ignore enregistrer +// cspell:ignore nmsgid nmsgstr enregistrer /** * Verifies that installing from existing configuration works. diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php index 81dc3d974f7361081637a87e51caab4ac82944fa..224e0d0a3535a8d8bfcfb22fbf79f47f5d6b9b3a 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php @@ -4,6 +4,8 @@ namespace Drupal\FunctionalTests\Installer; +// cspell:ignore nmsgid nmsgstr + /** * Verifies that the early installer uses the correct language direction. * diff --git a/core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php b/core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php index 4c9e7b1717b5329f61ae4d855267bed1d4ac0100..104294b393987aaf534e37a5a022f90f1fe1b855 100644 --- a/core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php +++ b/core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php @@ -55,46 +55,46 @@ public function testFormattableMarkupUri($string, $uri, $options, $expected): vo public static function providerTestFormattableMarkupUri() { $data = []; $data['routed-url'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', 'route:system.admin', [], - 'Hey giraffe <a href="/admin">MUUUH</a>', + 'Hey giraffe <a href="/admin">example</a>', ]; $data['routed-with-query'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', 'route:system.admin', ['query' => ['bar' => 'baz#']], - 'Hey giraffe <a href="/admin?bar=baz%23">MUUUH</a>', + 'Hey giraffe <a href="/admin?bar=baz%23">example</a>', ]; $data['routed-with-fragment'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', 'route:system.admin', ['fragment' => 'bar<'], - 'Hey giraffe <a href="/admin#bar&lt;">MUUUH</a>', + 'Hey giraffe <a href="/admin#bar&lt;">example</a>', ]; $data['unrouted-url'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', 'base://foo', [], - 'Hey giraffe <a href="/foo">MUUUH</a>', + 'Hey giraffe <a href="/foo">example</a>', ]; $data['unrouted-with-query'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', 'base://foo', ['query' => ['bar' => 'baz#']], - 'Hey giraffe <a href="/foo?bar=baz%23">MUUUH</a>', + 'Hey giraffe <a href="/foo?bar=baz%23">example</a>', ]; $data['unrouted-with-fragment'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', 'base://foo', ['fragment' => 'bar<'], - 'Hey giraffe <a href="/foo#bar&lt;">MUUUH</a>', + 'Hey giraffe <a href="/foo#bar&lt;">example</a>', ]; $data['mailto-protocol'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', 'mailto:test@example.com', [], - 'Hey giraffe <a href="mailto:test@example.com">MUUUH</a>', + 'Hey giraffe <a href="mailto:test@example.com">example</a>', ]; return $data; @@ -117,19 +117,19 @@ public function testFormattableMarkupUriWithExceptionUri($string, $uri): void { public static function providerTestFormattableMarkupUriWithException() { $data = []; $data['js-protocol'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', "javascript:alert('xss')", ]; $data['js-with-fromCharCode'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', "javascript:alert(String.fromCharCode(88,83,83))", ]; $data['non-url-with-colon'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', "llamas: they are not URLs", ]; $data['non-url-with-html'] = [ - 'Hey giraffe <a href=":url">MUUUH</a>', + 'Hey giraffe <a href=":url">example</a>', '<span>not a url</span>', ]; diff --git a/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php b/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php index 18fbd69e85ed1c922fb993715c1377d1e445ce80..0414b6e6fd1e943ef2aa573a88db106683438bc9 100644 --- a/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php @@ -15,6 +15,8 @@ use Symfony\Component\DependencyInjection\Reference; use Drupal\Component\Serialization\PhpSerialize; +// cspell:ignore pretransaction + /** * Tests delaying of cache tag invalidation queries to the end of transactions. * diff --git a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php index c2513deb87114e47ed031fa3ba381a248f5ae0e6..4e78d8497f53511a8af1ff03e89c259568d05e3e 100644 --- a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php +++ b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php @@ -537,7 +537,7 @@ public function testOutlinePathMatchZero(): void { $this->assertCount(1, $routes, 'The correct number of routes was found.'); } catch (ResourceNotFoundException) { - $this->fail('No matchout route found with 0 as argument value'); + $this->fail('No matching route found with 0 as argument value'); } } diff --git a/core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php b/core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php index 2aa5d62cdb2f46874c4e09cbf126ebed00182896..b5f2f04a5c4ad93022429984e4f9fcc674175d9c 100644 --- a/core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php +++ b/core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php @@ -4,7 +4,7 @@ namespace Drupal\TestSite; -// cspell:ignore enregistrer +// cspell:ignore nmsgid nmsgstr enregistrer /** * Setup file used by TestSiteApplicationTest. diff --git a/core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php b/core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php index 77ceffae7efe88519b61b8157e804194585d489e..1c1f7a0aadbcef2b7633cd914094124ca2754cbe 100644 --- a/core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php +++ b/core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php @@ -99,8 +99,8 @@ public function testMixedCaseConfigCleanupPackages(): void { // Put some mixed-case in the defaults. $ref_default = new \ReflectionProperty($config, 'defaultConfig'); $ref_default->setValue($config, [ - 'BeHatted/Mank' => ['tests'], - 'SymFunic/HTTPFoundational' => ['src'], + 'BeHatted/Monk' => ['tests'], + 'SymPhony/HTTPFoundational' => ['src'], ]); $plugin_config = $ref_plugin_config->invoke($config); diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php index 4299d1a413862696612ffb3861849ef692c51db3..61a11b78edce6afe8c8c672128f0326d9b78983e 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php @@ -149,7 +149,7 @@ public static function providerTestLink() { 'link text', 'link text', 'edit-form', - ['foo' => 'qwer'], + ['foo' => 'bar'], ]; return $data; } diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseCdataTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseCdataTest.php index 00ae45fbb0da0dc0bbd3d70f2aa21f6cf7f1537f..ccacafc20645ee03b2481a288d973bddbc1bd5fb 100644 --- a/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseCdataTest.php +++ b/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseCdataTest.php @@ -11,6 +11,8 @@ use Symfony\Component\HttpKernel\Event\ResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInterface; +// cspell:ignore xfbml + /** * @coversDefaultClass \Drupal\Core\EventSubscriber\RssResponseCdata * @group event_subscriber @@ -94,7 +96,7 @@ public static function providerTestOnResponse(): array { js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); -}(document, 'script', 'facebook-jssdk')); +}(document, 'script', 'facebook-js-sdk')); //--><!]]]]]]><![CDATA[><![CDATA[> //--><!]]]]><![CDATA[> diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php index b4727398e9a45eecdd281081a1b2d1e75a3e114e..d49733cfebf6c41201ac064f633d7a0d82f2b114 100644 --- a/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php +++ b/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php @@ -11,6 +11,8 @@ use Symfony\Component\HttpKernel\Event\ResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInterface; +// cspell:ignore xfbml + /** * @coversDefaultClass \Drupal\Core\EventSubscriber\RssResponseRelativeUrlFilter * @group event_subscriber @@ -88,7 +90,7 @@ public static function providerTestOnResponse() { js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); -}(document, 'script', 'facebook-jssdk')); +}(document, 'script', 'facebook-js-sdk')); //--><!]]]]]]><![CDATA[><![CDATA[> //--><!]]]]><![CDATA[> diff --git a/core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php b/core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php index 5b34e6319580983996686e29a730dc7d4969af23..4cdff7cc87678ac04f4c33358d7724bc8271a30c 100644 --- a/core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php @@ -43,7 +43,7 @@ public static function providerTestGetFit() { return [ ['test', 1], ['/estWithLeadingSlash', 1], - ['testWithTrailingslash/', 1], + ['testWithTrailingSlash/', 1], ['/testWithSlashes/', 1], ['test/with/multiple/parts', 15], ['test/with/{some}/slugs', 13], diff --git a/core/tests/README.md b/core/tests/README.md index ddebd5537445cc3d4d9a821986e72b8f2f72a59f..395db8779ed563b06b06ef6ffe5ca12a86abf236 100644 --- a/core/tests/README.md +++ b/core/tests/README.md @@ -50,7 +50,7 @@ a particular group: ``` ./vendor/bin/phpunit -c /path/to/your/phpunit.xml path/to/your/class/file.php ./vendor/bin/phpunit --list-groups -./vendor/bin/phpunit -c /path/to/your/phpunit.xml --group Groupname +./vendor/bin/phpunit -c /path/to/your/phpunit.xml --group group_name ``` Drupal core currently has a number of different types of tests that can be run @@ -154,7 +154,7 @@ If you run into file permission problems while running tests, you may need to invoke the phpunit executable with a user in the same group as the web server user, or with access to files owned by the web server user. For example: ``` -sudo -u www-data ./vendor/bin/phpunit -c /path/to/your/phpunit.xml --group Groupname +sudo -u www-data ./vendor/bin/phpunit -c /path/to/your/phpunit.xml --group group_name ``` If you have permission problems accessing files after running tests, try