From f7277d249bc4b82375fc56f30e4d72f2eaa73ff9 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Thu, 16 Jul 2020 13:53:59 +0100 Subject: [PATCH] Issue #3156266 by longwave, jungle, siddhant.bhosale, alexpott: Fix 70 spelling mistakes --- core/core.link_relation_types.yml | 2 +- core/includes/errors.inc | 2 +- core/includes/install.core.inc | 2 +- core/includes/schema.inc | 7 +- core/lib/Drupal/Core/Ajax/AnnounceCommand.php | 2 +- .../Drupal/Core/Entity/ContentEntityBase.php | 2 +- .../Core/Entity/ContentEntityStorageBase.php | 2 +- .../Entity/EntityChangesDetectionTrait.php | 2 +- core/lib/Drupal/Core/Extension/Dependency.php | 2 +- core/misc/ajax.es6.js | 2 +- core/misc/cspell/dictionary.txt | 69 ------------------- core/misc/message.es6.js | 2 +- .../CKEditorIntegrationTest.php | 2 +- .../Functional/ModeratedContentViewTest.php | 36 +++++----- .../ViewsModerationStateFilterTest.php | 2 +- .../src/Traits/ContentModerationTestTrait.php | 2 +- ...ContentTranslationEntityBundleInfoTest.php | 4 +- .../ManageDisplayTest.php | 2 +- .../config/schema/filter_test.schema.yml | 2 +- .../Plugin/migrate/process/FilterIdTest.php | 2 +- core/modules/forum/src/ForumSettingsForm.php | 4 +- core/modules/jsonapi/src/JsonApiSpec.php | 2 +- .../tests/src/Functional/EntryPointTest.php | 2 +- .../tests/src/Functional/ResourceTestBase.php | 4 +- .../jsonapi/tests/src/Unit/Query/SortTest.php | 2 +- .../views.view.test_link_tokens.yml | 2 +- .../Functional/Views/LinkViewsTokensTest.php | 2 +- .../locale/src/Form/TranslateEditForm.php | 4 +- .../config/schema/locale_test.schema.yml | 2 +- .../FieldFormatter/OEmbedFormatterTest.php | 2 +- .../CKEditorIntegrationTest.php | 2 +- .../templates/media-library-wrapper.html.twig | 2 +- .../CKEditorIntegrationTest.php | 2 +- .../migrate/destination/EntityTestBase.php | 2 +- .../migrate_drupal/src/MigrationState.php | 2 +- .../tests/src/Unit/Encoder/XmlEncoderTest.php | 4 +- ...EntityReferenceFieldItemNormalizerTest.php | 2 +- core/modules/system/system.routing.yml | 2 +- .../templates/status-report-counter.html.twig | 2 +- .../status-report-general-info.html.twig | 2 +- ...EntityTestMulRevChangedWithRevisionLog.php | 2 +- .../modules/form_test/form_test.routing.yml | 2 +- .../src/Form/FormTestRedirectForm.php | 2 +- .../Datetime/DrupalDateTimeTest.php | 2 +- .../src/Functional/System/DateTimeTest.php | 2 +- .../Form/TriggeringElementTest.php | 3 +- .../ThemeSettingsFormTest.php | 2 +- .../tests/src/Kernel/UpdateReportTest.php | 2 +- .../user/tests/src/Unit/UserAuthTest.php | 6 +- .../views/src/Plugin/views/query/Sql.php | 4 +- core/modules/views/src/ViewExecutable.php | 2 +- .../ArgumentValidatorTest.php | 2 +- .../src/Kernel/Handler/FieldNumericTest.php | 2 +- .../Kernel/Handler/FilterInOperatorTest.php | 2 +- .../tests/src/Kernel/ViewsTemplateTest.php | 2 +- .../media-library-wrapper.html.twig | 2 +- core/scripts/transliteration_data.php.txt | 2 +- .../Ajax/DialogTest.php | 2 +- .../Ajax/ElementValidationTest.php | 2 +- .../Ajax/FormValuesTest.php | 2 +- .../Ajax/MessageCommandTest.php | 2 +- .../Core/Config/ConfigDependencyTest.php | 2 +- .../Core/Config/ConfigSchemaTest.php | 4 +- .../KernelTests/Core/Database/FetchTest.php | 2 +- .../Entity/ContentEntityHasChangesTest.php | 4 +- .../Field/Entity/BaseFieldOverrideTest.php | 2 +- .../Core/Theme/ConfirmClassyCopiesTest.php | 2 +- .../Drupal/KernelTests/KernelTestBase.php | 2 +- .../Nightwatch/Commands/drupalUninstall.js | 2 +- .../Tests/Component/DrupalComponentTest.php | 10 +-- .../Tests/Core/Database/UrlConversionTest.php | 2 +- .../Core/PageCache/ChainRequestPolicyTest.php | 2 +- .../PageCache/ChainResponsePolicyTest.php | 2 +- .../Core/Render/BubbleableMetadataTest.php | 2 +- .../Tests/Core/Serialization/YamlTest.php | 2 +- .../Drupal/Tests/Core/Site/SettingsTest.php | 6 +- .../NegotiationMiddlewareTest.php | 4 +- .../media-library-wrapper.html.twig | 2 +- .../css/components/form--managed-file.css | 2 +- .../components/form--managed-file.pcss.css | 2 +- .../themes/claro/css/components/tabledrag.css | 2 +- .../claro/css/components/tabledrag.pcss.css | 2 +- core/themes/claro/js/tabledrag.es6.js | 2 +- .../media-library-wrapper.html.twig | 2 +- .../form/field-multiple-value-form.html.twig | 2 +- .../templates/status-report-counter.html.twig | 2 +- .../status-report-general-info.html.twig | 2 +- .../media-library-wrapper.html.twig | 2 +- .../media-library-wrapper.html.twig | 2 +- .../templates/status-report-counter.html.twig | 2 +- .../status-report-general-info.html.twig | 2 +- .../status-report-general-info.html.twig | 2 +- .../media-library-wrapper.html.twig | 2 +- .../status-report-general-info.html.twig | 2 +- .../media-library-wrapper.html.twig | 2 +- 95 files changed, 131 insertions(+), 200 deletions(-) diff --git a/core/core.link_relation_types.yml b/core/core.link_relation_types.yml index 21cdd6452e8c..50da734474bb 100644 --- a/core/core.link_relation_types.yml +++ b/core/core.link_relation_types.yml @@ -294,7 +294,7 @@ via: description: "Identifies a resource that is the source of the information in the link's context." reference: '[RFC4287]' webmention: - description: "Identifies a target URI that supports the Webmention protcol. This allows clients that mention a resource in some form of publishing process to contact that endpoint and inform it that this resource has been mentioned." + description: "Identifies a target URI that supports the Webmention protocol. This allows clients that mention a resource in some form of publishing process to contact that endpoint and inform it that this resource has been mentioned." reference: '[http://www.w3.org/TR/webmention/]' notes: "This is a similar \"Linkback\" mechanism to the ones of Refback, Trackback, and Pingback. It uses a different protocol, though, and thus should be discoverable through its own link relation type." working-copy: diff --git a/core/includes/errors.inc b/core/includes/errors.inc index 04aa51aed7d0..cb5edf21808f 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -74,7 +74,7 @@ function _drupal_error_handler_real($error_level, $message, $filename, $line, $c _drupal_log_error([ '%type' => isset($types[$error_level]) ? $severity_msg : 'Unknown error', // The standard PHP error handler considers that the error messages - // are HTML. We mimick this behavior here. + // are HTML. We mimic this behavior here. '@message' => Markup::create(Xss::filterAdmin($message)), '%function' => $caller['function'], '%file' => $caller['file'], diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 890c385a568a..10c6260a9218 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -251,7 +251,7 @@ function install_state_defaults() { // required translation file. 'server_pattern' => 'http://ftp.drupal.org/files/translations/%core/%project/%project-%version.%language.po', // Installation tasks can set this to TRUE to force the page request to - // end (even if there is no themable output), in the case of an interactive + // end (even if there is no themeable output), in the case of an interactive // installation. This is needed only rarely; for example, it would be used // by an installation task that prints JSON output rather than returning a // themed page. The most common example of this is during batch processing, diff --git a/core/includes/schema.inc b/core/includes/schema.inc index 9dc190e3cdfa..538f1b32517a 100644 --- a/core/includes/schema.inc +++ b/core/includes/schema.inc @@ -39,10 +39,9 @@ function drupal_get_schema_versions($module) { // Narrow this down to functions ending with an integer, since all // hook_update_N() functions end this way, and there are other // possible functions which match '_update_'. We use preg_grep() here - // instead of foreaching through all defined functions, since the loop - // through all PHP functions can take significant page execution time - // and this function is called on every administrative page via - // system_requirements(). + // since looping through all PHP functions can take significant page + // execution time and this function is called on every administrative page + // via system_requirements(). foreach (preg_grep('/_\d+$/', $functions['user']) as $function) { // If this function is a module update function, add it to the list of // module updates. diff --git a/core/lib/Drupal/Core/Ajax/AnnounceCommand.php b/core/lib/Drupal/Core/Ajax/AnnounceCommand.php index b32f4e62dc40..f43fae5d65e8 100644 --- a/core/lib/Drupal/Core/Ajax/AnnounceCommand.php +++ b/core/lib/Drupal/Core/Ajax/AnnounceCommand.php @@ -9,7 +9,7 @@ * * Developers should be extra careful if this command and * \Drupal\Core\Ajax\MessageCommand are included in the same response. By - * default, MessageCommmand will also call Drupal.announce() and announce the + * default, MessageCommand will also call Drupal.announce() and announce the * message to the screen reader (unless the option to suppress announcements is * passed to the constructor). Manual testing with a screen reader is strongly * recommended. diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 8e85d4c05734..35dca9a9c67b 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -1424,7 +1424,7 @@ public function hasTranslationChanges() { $translation = $original->getTranslation($this->activeLangcode); $langcode = $this->language()->getId(); - // The list of fields to skip from the comparision. + // The list of fields to skip from the comparison. $skip_fields = $this->getFieldsToSkipFromTranslationChangesCheck(); // We also check untranslatable fields, so that a change to those will mark diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index 7ad68edd6b13..c667ff2d4a04 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -368,7 +368,7 @@ protected function getRevisionTranslationMergeSkippedFieldNames() { $entity_type = $this->getEntityType(); // A list of known revision metadata fields which should be skipped from - // the comparision. + // the comparison. $field_names = [ $entity_type->getKey('revision'), $entity_type->getKey('revision_translation_affected'), diff --git a/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php b/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php index cde4d834ce8e..ff411063bddf 100644 --- a/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php +++ b/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php @@ -23,7 +23,7 @@ protected function getFieldsToSkipFromTranslationChangesCheck(ContentEntityInter $entity_type = $entity->getEntityType(); // A list of known revision metadata fields which should be skipped from - // the comparision. + // the comparison. $fields = [ $entity_type->getKey('revision'), $entity_type->getKey('revision_translation_affected'), diff --git a/core/lib/Drupal/Core/Extension/Dependency.php b/core/lib/Drupal/Core/Extension/Dependency.php index 392fc6bc4c43..da36f612a8e9 100644 --- a/core/lib/Drupal/Core/Extension/Dependency.php +++ b/core/lib/Drupal/Core/Extension/Dependency.php @@ -139,7 +139,7 @@ public static function createFromString($dependency) { * Prevents unnecessary serialization of constraint objects. * * @return array - * The properties to seriailize. + * The properties to serialize. */ public function __sleep() { return ['name', 'project', 'constraintString']; diff --git a/core/misc/ajax.es6.js b/core/misc/ajax.es6.js index 6eeddf3df74a..6c1ff29848d1 100644 --- a/core/misc/ajax.es6.js +++ b/core/misc/ajax.es6.js @@ -1225,7 +1225,7 @@ let $newContent = $($.parseHTML(response.data, document, true)); // For backward compatibility, in some cases a wrapper will be added. This // behavior will be removed before Drupal 9.0.0. If different behavior is - // needed, the theme functions can be overriden. + // needed, the theme functions can be overridden. // @see https://www.drupal.org/node/2940704 $newContent = Drupal.theme( 'ajaxWrapperNewContent', diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt index 4633c074c50f..bb66113b988a 100644 --- a/core/misc/cspell/dictionary.txt +++ b/core/misc/cspell/dictionary.txt @@ -80,8 +80,6 @@ ascript asdf asdrsad assertable -assertsame -asssert asterix asubject atomentry @@ -138,7 +136,6 @@ autosubmit autowire autowired autowiring -availble backend's backlink backlinks @@ -152,7 +149,6 @@ barbaz barchart barfoo barmm -baro barqux bartik bartik's @@ -278,11 +274,9 @@ checkboxifier checkboxify checkboxradio checkmark -chedked chien chiens childlist -chnged chocolatiers chromedriver chroot'd @@ -327,10 +321,7 @@ comida commandline commenter's commenters -commmand commontest -comparision -compliane complote compositionend compositionstart @@ -364,7 +355,6 @@ corefake coretest corge countquery -coversions cpan cpio createkey @@ -466,7 +456,6 @@ deserialization deserializes destid destinationproperty -destion destructable destructured desynchronized @@ -558,9 +547,6 @@ elementspath elems elit embed's -emebd -emptry -emtpy encapsed encoding's endapply @@ -580,7 +566,6 @@ enim enoki enregistrer entit -entites entitiesto entitynodeedit entityreference @@ -599,7 +584,6 @@ ession estraven etag etags -etheopian eurozone evenodd eventhandler @@ -689,11 +673,6 @@ foofoo foomm foos fooÿñ -forder -foreaching -forentity -formated -formating formatless formattable formatter's @@ -709,7 +688,6 @@ français fraîche freenode frombracket -frontcontroller frontpage fsdf ftest @@ -728,11 +706,9 @@ gabilondo gato gaurd gbmb -get's getcode getfile gethttpclient -geting getlist getmachine getview @@ -826,7 +802,6 @@ idconflict idekey idempotency idempotently -identation identifier's idmap ieid @@ -845,7 +820,6 @@ imagelink imagemagick imagetest inator -indetation indexname indexrelid indisprimary @@ -854,19 +828,15 @@ indrelid ingoa inited inno -inorrect -inpur inputtypes insidekeyword inspectable -instace instaclick install's installable instantiator inteface intefacewithconstants -interger internal's introspectable invalida @@ -1027,7 +997,6 @@ maxdepth maximumred maxlifetime maxsize -may've maynot mbytes mdash @@ -1053,7 +1022,6 @@ mikey milli mimeheaders mimetypes -mimick minifiers minifyzombies minimise @@ -1297,9 +1265,7 @@ outdata outdent outdir outro -overidden overridable -overriden overrider overrider's overriders @@ -1310,9 +1276,7 @@ pagecache pagetop pageviews pagina -pagnel pangram -paramaters paramconverter parens parentc @@ -1334,7 +1298,6 @@ perfoming performant perma permissionless -persion persistable pharextract phars @@ -1377,7 +1340,6 @@ postbar postcondition postfields postfoo -postge postgres postgresql postorder @@ -1396,9 +1358,7 @@ preconfigured preconnect precreated predelete -prefech prefetches -preffix prefill prefilled prefilling @@ -1433,12 +1393,10 @@ processlist projecta projectb proname -propegated propertyname prophesize prophesized prophesizing -protcol protossl proxied proxying @@ -1490,7 +1448,6 @@ realelement realpaths realword rebuilder -receieved reclosed recolorable redirections @@ -1520,7 +1477,6 @@ relnamespace removeformat renderable renderables -renderd renderer's renderered renormalize @@ -1537,8 +1493,6 @@ resaved resaving rescan resizer -resonse -restirct restplugin restrictor restripe @@ -1553,7 +1507,6 @@ revisionable revisioned revisionid revisioning -revist revlog revpub ribisi @@ -1617,18 +1570,13 @@ selectbox selectlist semver sendmail -seralization -seriailize serializer's -serialzer serviceform -sesison sess sessionpath settingstray setttings setval -sevice sharedspace shatner shorterthan @@ -1636,7 +1584,6 @@ shortlink shortname shortnames showblocks -shrinked sidebarborders siema silverlight @@ -1719,7 +1666,6 @@ strs sttid stuffit styleguide -styleing stylelint stylescombo subarrays @@ -1738,7 +1684,6 @@ subjectkeyword subkey subkeys submenu -submited subpackage subparse subpath @@ -1773,8 +1718,6 @@ sulaco sunz sunzzzzzzz supercede -suppresion -supresses sut's svenska svgs @@ -1786,7 +1729,6 @@ symlinking symlinks synchronizable syrop -sytem tabarnak tabbable tabbingmanager @@ -1874,7 +1816,6 @@ textformat textgroup textwithsummary thaana -themable themeable themename themer @@ -1928,14 +1869,10 @@ touchevents tparams trackback trailingslash -traint -tranformed transferthick transitionend translatables -translateable transpiled -traslation trayblock trex trgm @@ -1955,10 +1892,8 @@ typehinted typehinting typehints typemanager -typr tzid uberawesome -ubmit ui's uicrud uids @@ -2000,7 +1935,6 @@ unidecode unidecoder unindented unindexed -uninstal uninstallation uninstallations uninstantiatable @@ -2010,7 +1944,6 @@ unitalicize unixepoch unixtimestamp unkeyed -unknow unmanaged unmatch unmigrated @@ -2078,7 +2011,6 @@ url's urlalias urldecoding urlto -useage usecase userid userinfo @@ -2087,7 +2019,6 @@ userreference users's userspace usuario -utton uuid's uuids validatable diff --git a/core/misc/message.es6.js b/core/misc/message.es6.js index 41489e5733a9..2390ab0565a4 100644 --- a/core/misc/message.es6.js +++ b/core/misc/message.es6.js @@ -80,7 +80,7 @@ * Message type, can be either 'status', 'error' or 'warning'. * @param {string} [options.announce] * Screen-reader version of the message if necessary. To prevent a message - * being sent to Drupal.announce() this should be an emptry string. + * being sent to Drupal.announce() this should be an empty string. * @param {string} [options.priority] * Priority of the message for Drupal.announce(). * diff --git a/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php b/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php index 660c600559ea..74c20abace61 100644 --- a/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php +++ b/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php @@ -203,7 +203,7 @@ public function testOffCanvasStyles() { $assert_session->assertWaitOnAjaxRequest(); // Check the background color of two CKEditor elements to confirm they are - // not overriden by the off-canvas css reset. + // not overridden by the off-canvas css reset. $assert_session->elementExists('css', '.cke_top'); $ckeditor_top_bg_color = $this->getSession()->evaluateScript('window.getComputedStyle(document.getElementsByClassName(\'cke_top\')[0]).backgroundColor'); $this->assertEqual($ckeditor_top_bg_color, 'rgb(248, 248, 248)'); diff --git a/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php b/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php index fdca16e09882..004e94c74813 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php @@ -66,7 +66,7 @@ public function setUp(): void { * Tests the moderated content page. */ public function testModeratedContentPage() { - $assert_sesison = $this->assertSession(); + $assert_session = $this->assertSession(); $this->drupalLogin($this->adminUser); // Use an explicit changed time to ensure the expected order in the content @@ -103,15 +103,15 @@ public function testModeratedContentPage() { // Verify view, edit, and delete links for any content. $this->drupalGet('admin/content/moderated'); - $assert_sesison->statusCodeEquals(200); + $assert_session->statusCodeEquals(200); // Check that nodes with pending revisions appear in the view. $node_type_labels = $this->xpath('//td[contains(@class, "views-field-type")]'); $delta = 0; foreach ($nodes as $node) { - $assert_sesison->linkByHrefExists('node/' . $node->id()); - $assert_sesison->linkByHrefExists('node/' . $node->id() . '/edit'); - $assert_sesison->linkByHrefExists('node/' . $node->id() . '/delete'); + $assert_session->linkByHrefExists('node/' . $node->id()); + $assert_session->linkByHrefExists('node/' . $node->id() . '/edit'); + $assert_session->linkByHrefExists('node/' . $node->id() . '/delete'); // Verify that we can see the content type label. $this->assertEquals($node->type->entity->label(), trim($node_type_labels[$delta]->getText())); $delta++; @@ -120,30 +120,30 @@ public function testModeratedContentPage() { // Check that nodes that are not moderated or do not have a pending revision // do not appear in the view. foreach ($excluded_nodes as $node) { - $assert_sesison->linkByHrefNotExists('node/' . $node->id()); + $assert_session->linkByHrefNotExists('node/' . $node->id()); } // Check that the latest revision is displayed. - $assert_sesison->pageTextContains('first article - draft'); - $assert_sesison->pageTextNotContains('first article - published'); + $assert_session->pageTextContains('first article - draft'); + $assert_session->pageTextNotContains('first article - published'); // Verify filtering by moderation state. $this->drupalGet('admin/content/moderated', ['query' => ['moderation_state' => 'editorial-draft']]); - $assert_sesison->linkByHrefExists('node/' . $nodes['published_then_draft_article']->id() . '/edit'); - $assert_sesison->linkByHrefExists('node/' . $nodes['draft_article']->id() . '/edit'); - $assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit'); - $assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit'); - $assert_sesison->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit'); + $assert_session->linkByHrefExists('node/' . $nodes['published_then_draft_article']->id() . '/edit'); + $assert_session->linkByHrefExists('node/' . $nodes['draft_article']->id() . '/edit'); + $assert_session->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit'); + $assert_session->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit'); + $assert_session->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit'); // Verify filtering by moderation state and content type. $this->drupalGet('admin/content/moderated', ['query' => ['moderation_state' => 'editorial-draft', 'type' => 'page']]); - $assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit'); - $assert_sesison->linkByHrefExists('node/' . $nodes['draft_page_2']->id() . '/edit'); - $assert_sesison->linkByHrefNotExists('node/' . $nodes['published_then_draft_article']->id() . '/edit'); - $assert_sesison->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit'); - $assert_sesison->linkByHrefNotExists('node/' . $nodes['draft_article']->id() . '/edit'); + $assert_session->linkByHrefExists('node/' . $nodes['draft_page_1']->id() . '/edit'); + $assert_session->linkByHrefExists('node/' . $nodes['draft_page_2']->id() . '/edit'); + $assert_session->linkByHrefNotExists('node/' . $nodes['published_then_draft_article']->id() . '/edit'); + $assert_session->linkByHrefNotExists('node/' . $nodes['published_then_archived_article']->id() . '/edit'); + $assert_session->linkByHrefNotExists('node/' . $nodes['draft_article']->id() . '/edit'); } /** diff --git a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php index 3fc8f208e222..0589e7ade7ed 100644 --- a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php @@ -224,7 +224,7 @@ public function testWorkflowChanges($view_id) { } /** - * Execute a view and asssert the expected results. + * Execute a view and assert the expected results. * * @param \Drupal\views\ViewEntityInterface $view_entity * A view configuration entity. diff --git a/core/modules/content_moderation/tests/src/Traits/ContentModerationTestTrait.php b/core/modules/content_moderation/tests/src/Traits/ContentModerationTestTrait.php index dc7d557c171e..53525b511d9c 100644 --- a/core/modules/content_moderation/tests/src/Traits/ContentModerationTestTrait.php +++ b/core/modules/content_moderation/tests/src/Traits/ContentModerationTestTrait.php @@ -6,7 +6,7 @@ use Drupal\workflows\WorkflowInterface; /** - * Trait ContentModerationTestTraint. + * Trait ContentModerationTestTrait. */ trait ContentModerationTestTrait { diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php index 7972f502a91a..754fdb7ece8b 100644 --- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php +++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php @@ -98,7 +98,7 @@ public function testFieldSynchronizationWithDisabledBundle() { } /** - * Tests that bundle translation settings are propegated on creation. + * Tests that bundle translation settings are propagated on creation. * * @throws \Drupal\Core\Entity\EntityStorageException */ @@ -110,7 +110,7 @@ public function testBundleClearOnLanguageContentSettingInsert() { } /** - * Tests that bundle translation setting changes are propegated. + * Tests that bundle translation setting changes are propagated. * * @throws \Drupal\Core\Entity\EntityStorageException * @throws \Exception diff --git a/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php b/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php index 53c220cb85e3..17cc3e450723 100644 --- a/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php +++ b/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php @@ -110,7 +110,7 @@ public function testFormatterUI() { $field_test_settings = $page->find('css', 'input[name="field_test_settings_edit"]'); $weight_toggle = $page->find('css', '.tabledrag-toggle-weight'); - // Assert the format typr field is visible and contains the expected + // Assert the format type field is visible and contains the expected // formatter. $this->assertTrue($field_test_format_type->isVisible()); $this->assertEquals($format, $field_test_format_type->getValue()); diff --git a/core/modules/filter/tests/filter_test/config/schema/filter_test.schema.yml b/core/modules/filter/tests/filter_test/config/schema/filter_test.schema.yml index 53fd4a3e628d..92e107f4e910 100644 --- a/core/modules/filter/tests/filter_test/config/schema/filter_test.schema.yml +++ b/core/modules/filter/tests/filter_test/config/schema/filter_test.schema.yml @@ -2,7 +2,7 @@ filter_settings.filter_test_restrict_tags_and_attributes: type: filter - label: 'Filter to restirct HTML tags and attributes' + label: 'Filter to restrict HTML tags and attributes' mapping: restrictions: type: mapping diff --git a/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php b/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php index f58eece75744..49e54a859c6d 100644 --- a/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php +++ b/core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php @@ -97,7 +97,7 @@ public function testTransform($value, $expected_value, $invalid_id = NULL, $skip * Provides filter ids for testing transformations. * * @return array - * Formatted as $source_id, $tranformed_id, $invalid_id. + * Formatted as $source_id, $transformed_id, $invalid_id. * When $invalid_id is provided the transformation should fail with the * supplied id. */ diff --git a/core/modules/forum/src/ForumSettingsForm.php b/core/modules/forum/src/ForumSettingsForm.php index 87a13bef7b58..67650d770531 100644 --- a/core/modules/forum/src/ForumSettingsForm.php +++ b/core/modules/forum/src/ForumSettingsForm.php @@ -48,7 +48,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#options' => array_combine($options, $options), '#description' => $this->t('Default number of forum topics displayed per page.'), ]; - $forder = [ + $order = [ 1 => $this->t('Date - newest first'), 2 => $this->t('Date - oldest first'), 3 => $this->t('Posts - most active first'), @@ -58,7 +58,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#type' => 'radios', '#title' => $this->t('Default order'), '#default_value' => $config->get('topics.order'), - '#options' => $forder, + '#options' => $order, '#description' => $this->t('Default display order for topics.'), ]; diff --git a/core/modules/jsonapi/src/JsonApiSpec.php b/core/modules/jsonapi/src/JsonApiSpec.php index a02422190425..956dac6c0012 100644 --- a/core/modules/jsonapi/src/JsonApiSpec.php +++ b/core/modules/jsonapi/src/JsonApiSpec.php @@ -134,7 +134,7 @@ public static function getReservedQueryParameters() { * A custom query parameter name to validate. * * @return bool - * Whether the given query parameter is in compliane with the JSON:API + * Whether the given query parameter is in compliance with the JSON:API * specification. * * @see http://jsonapi.org/format/#query-parameters diff --git a/core/modules/jsonapi/tests/src/Functional/EntryPointTest.php b/core/modules/jsonapi/tests/src/Functional/EntryPointTest.php index 2ab8da8c080b..88e65c2f91e0 100644 --- a/core/modules/jsonapi/tests/src/Functional/EntryPointTest.php +++ b/core/modules/jsonapi/tests/src/Functional/EntryPointTest.php @@ -35,7 +35,7 @@ class EntryPointTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test GETing the entry point. + * Test GET to the entry point. */ public function testEntryPoint() { $request_options = []; diff --git a/core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php b/core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php index b7149ec5663b..e89aea1a1b81 100644 --- a/core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php +++ b/core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php @@ -1279,7 +1279,7 @@ protected function getExpectedCollectionResponse(array $collection, $self_link, } /** - * Tests GETing related resource of an individual resource. + * Tests GET of the related resource of an individual resource. * * Expected responses are built by making requests to 'relationship' routes. * Using the fetched resource identifiers, if any, all targeted resources are @@ -2135,7 +2135,7 @@ public function testPatchIndividual() { // DX: 415 when no Content-Type request header. $response = $this->request('PATCH', $url, $request_options); - $this->assertsame(415, $response->getStatusCode()); + $this->assertSame(415, $response->getStatusCode()); $request_options[RequestOptions::HEADERS]['Content-Type'] = 'application/vnd.api+json'; diff --git a/core/modules/jsonapi/tests/src/Unit/Query/SortTest.php b/core/modules/jsonapi/tests/src/Unit/Query/SortTest.php index 2c2256123e5a..f49b2f77122f 100644 --- a/core/modules/jsonapi/tests/src/Unit/Query/SortTest.php +++ b/core/modules/jsonapi/tests/src/Unit/Query/SortTest.php @@ -45,7 +45,7 @@ public function testCreateFromQueryParameter($input, $expected) { } /** - * Provides a suite of shortcut sort paramaters and their expected expansions. + * Provides a suite of shortcut sort parameters and their expected expansions. */ public function parameterProvider() { return [ diff --git a/core/modules/link/tests/modules/link_test_views/test_views/views.view.test_link_tokens.yml b/core/modules/link/tests/modules/link_test_views/test_views/views.view.test_link_tokens.yml index 975561599668..f21aebb2f3af 100644 --- a/core/modules/link/tests/modules/link_test_views/test_views/views.view.test_link_tokens.yml +++ b/core/modules/link/tests/modules/link_test_views/test_views/views.view.test_link_tokens.yml @@ -88,7 +88,7 @@ display: exclude: false alter: alter_text: true - text: "Formated: {{ field_link }}<br />\nRaw uri: {{ field_link__uri }}<br />\nRaw title: {{ field_link__title }}<br />\nRaw options: {{ field_link__options }}." + text: "Formatted: {{ field_link }}<br />\nRaw uri: {{ field_link__uri }}<br />\nRaw title: {{ field_link__title }}<br />\nRaw options: {{ field_link__options }}." make_link: false path: '{{ field_link__uri }}' absolute: false diff --git a/core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php b/core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php index 2ccedd6fae6f..4b90208ec4e6 100644 --- a/core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php +++ b/core/modules/link/tests/src/Functional/Views/LinkViewsTokensTest.php @@ -86,7 +86,7 @@ public function testLinkViewsTokens() { foreach ($uris as $uri => $title) { // Formatted link: {{ field_link }}<br /> - $this->assertRaw("Formated: <a href=\"$uri\" class=\"test-link-class\">$title</a>"); + $this->assertRaw("Formatted: <a href=\"$uri\" class=\"test-link-class\">$title</a>"); // Raw uri: {{ field_link__uri }}<br /> $this->assertRaw("Raw uri: $uri"); diff --git a/core/modules/locale/src/Form/TranslateEditForm.php b/core/modules/locale/src/Form/TranslateEditForm.php index c402f08e2a16..aa2f74bc4a6e 100644 --- a/core/modules/locale/src/Form/TranslateEditForm.php +++ b/core/modules/locale/src/Form/TranslateEditForm.php @@ -71,7 +71,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#title' => $this->t('Source string (@language)', ['@language' => $this->t('Built-in English')]), '#title_display' => 'invisible', '#plain_text' => $source_array[0], - '#preffix' => '<span lang="en">', + '#prefix' => '<span lang="en">', '#suffix' => '</span>', ]; } @@ -89,7 +89,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#type' => 'item', '#title' => $this->t('Plural form'), '#plain_text' => $source_array[1], - '#preffix' => '<span lang="en">', + '#prefix' => '<span lang="en">', '#suffix' => '</span>', ]; $form['strings'][$string->lid]['original'] = [ diff --git a/core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml b/core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml index 1f8ef08deeff..137d1550d4e0 100644 --- a/core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml +++ b/core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml @@ -2,7 +2,7 @@ locale_test.no_translation: type: config_object - label: 'No traslation settings' + label: 'No translation settings' mapping: test: type: string diff --git a/core/modules/media/tests/src/Functional/FieldFormatter/OEmbedFormatterTest.php b/core/modules/media/tests/src/Functional/FieldFormatter/OEmbedFormatterTest.php index 2fa7ea303b45..ba0a8eb6339b 100644 --- a/core/modules/media/tests/src/Functional/FieldFormatter/OEmbedFormatterTest.php +++ b/core/modules/media/tests/src/Functional/FieldFormatter/OEmbedFormatterTest.php @@ -155,7 +155,7 @@ public function testDisplayConfiguration() { * @param string $url * The canonical URL of the media asset to test. * @param string $resource_url - * The oEmebd resource URL of the media asset to test. + * The oEmbed resource URL of the media asset to test. * @param mixed $formatter_settings * Settings for the oEmbed field formatter. * @param array $selectors diff --git a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php index 48c5aabef47a..8c43be4de16c 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php @@ -218,7 +218,7 @@ public function testErrorMessages() { // There's a second kind of error message that comes from the back end // that happens when the media uuid can't be converted to a media preview. - // In this case, the error will appear in a the themable + // In this case, the error will appear in a the themeable // media-embed-error.html template. We have a hook altering the css // classes to test the twi template is working properly and picking up our // extra class. diff --git a/core/modules/media_library/templates/media-library-wrapper.html.twig b/core/modules/media_library/templates/media-library-wrapper.html.twig index 344637cd62c2..bb79208f64f0 100644 --- a/core/modules/media_library/templates/media-library-wrapper.html.twig +++ b/core/modules/media_library/templates/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php index a6eed02568ec..59462b2cc6ca 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php @@ -278,7 +278,7 @@ public function testAllowedMediaTypes() { 'all_media_types' => [], 'only_image' => ['image' => 'image'], 'only_arrakis' => ['arrakis' => 'arrakis'], - 'both_items_chedked' => [ + 'both_items_checked' => [ 'image' => 'image', 'arrakis' => 'arrakis', ], diff --git a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php index 2b0e2218824b..c537d5a4b4ce 100644 --- a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php +++ b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php @@ -15,7 +15,7 @@ use Drupal\Tests\UnitTestCase; /** - * Base test class forentity migration destination functionality. + * Base test class for entity migration destination functionality. */ class EntityTestBase extends UnitTestCase { diff --git a/core/modules/migrate_drupal/src/MigrationState.php b/core/modules/migrate_drupal/src/MigrationState.php index 593b0c041857..4175caa1d739 100644 --- a/core/modules/migrate_drupal/src/MigrationState.php +++ b/core/modules/migrate_drupal/src/MigrationState.php @@ -213,7 +213,7 @@ class MigrationState { * @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler * Module handler. * @param \Drupal\Core\Messenger\MessengerInterface $messenger - * Messenger sevice. + * Messenger service. * @param \Drupal\Core\StringTranslation\TranslationInterface $stringTranslation * String translation service. */ diff --git a/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php b/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php index b8d33a9f1c9f..6ccac1369550 100644 --- a/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php +++ b/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php @@ -86,8 +86,8 @@ public function testDefaultEncoderHasSerializer() { // The serializer should be set on the Drupal encoder, which should then // set it on our default encoder. $encoder = new XmlEncoder(); - $serialzer = new Serializer([new GetSetMethodNormalizer()]); - $encoder->setSerializer($serialzer); + $serializer = new Serializer([new GetSetMethodNormalizer()]); + $encoder->setSerializer($serializer); $base_encoder = $encoder->getBaseEncoder(); $this->assertInstanceOf(BaseXmlEncoder::class, $base_encoder); // Test the encoder. diff --git a/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php b/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php index 2a83e6804f81..4e83171b205b 100644 --- a/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php +++ b/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php @@ -393,7 +393,7 @@ public function testDenormalizeWithTypeWithIncorrectUuid() { /** * @covers ::denormalize */ - public function testDenormalizeWithEmtpyUuid() { + public function testDenormalizeWithEmptyUuid() { $this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage('If provided "target_uuid" cannot be empty for field "test_type".'); diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml index e0f497860e56..d68770ddf32a 100644 --- a/core/modules/system/system.routing.yml +++ b/core/modules/system/system.routing.yml @@ -487,7 +487,7 @@ system.batch_page.json: _admin_route: TRUE # Note: This route just exists for generating URLs, the dedicated -# frontcontroller is used if the URL is accessed. +# front controller is used if the URL is accessed. system.db_update: path: '/update.php/{op}' defaults: diff --git a/core/modules/system/templates/status-report-counter.html.twig b/core/modules/system/templates/status-report-counter.html.twig index 8489e495d88e..7c5a766600d8 100644 --- a/core/modules/system/templates/status-report-counter.html.twig +++ b/core/modules/system/templates/status-report-counter.html.twig @@ -8,7 +8,7 @@ * - text: The text shown on counter. * - severity: The severity of the counter. * - * @ingroup themable + * @ingroup themeable */ #} <span class="system-status-counter__status-icon system-status-counter__status-icon--{{ severity }}"></span> diff --git a/core/modules/system/templates/status-report-general-info.html.twig b/core/modules/system/templates/status-report-general-info.html.twig index d4d5054dcf41..91c3c6182f28 100644 --- a/core/modules/system/templates/status-report-general-info.html.twig +++ b/core/modules/system/templates/status-report-general-info.html.twig @@ -12,7 +12,7 @@ * - description: The description for current status of cron. * - cron.run_cron: An array to render a button for running cron. * - database_system: The status of database system: - * - value: The current status of database sytem. + * - value: The current status of database system. * - description: The description for current status of cron. * - database_system_version: The info about current database version: * - value: The current version of database. diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevChangedWithRevisionLog.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevChangedWithRevisionLog.php index a22954bde215..06b3ef13214a 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevChangedWithRevisionLog.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevChangedWithRevisionLog.php @@ -10,7 +10,7 @@ * Defines the test entity class. * * @ContentEntityType( - * id = "entity_test_mulrev_chnged_revlog", + * id = "entity_test_mulrev_changed_rev", * label = @Translation("Test entity - revisions log and data table"), * base_table = "entity_test_mulrev_changed_revlog", * revision_table = "entity_test_mulrev_changed_revlog_revision", diff --git a/core/modules/system/tests/modules/form_test/form_test.routing.yml b/core/modules/system/tests/modules/form_test/form_test.routing.yml index ce4dfa98fb3e..f58c11cd2896 100644 --- a/core/modules/system/tests/modules/form_test/form_test.routing.yml +++ b/core/modules/system/tests/modules/form_test/form_test.routing.yml @@ -108,7 +108,7 @@ form_test.validate_without_csrf_token: requirements: _access: 'TRUE' -form_test.validate_with_error_suppresion: +form_test.validate_with_error_suppression: path: '/form-test/limit-validation-errors' defaults: _form: '\Drupal\form_test\Form\FormTestLimitValidationErrorsForm' diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php index 69b20a854de1..3df14d4a0436 100644 --- a/core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php +++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestRedirectForm.php @@ -52,7 +52,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { if (!$form_state->isValueEmpty('redirection')) { if (!$form_state->isValueEmpty('destination')) { // The destination is a random URL, so we can't use routed URLs. - // @todo Revist this in https://www.drupal.org/node/2418219. + // @todo Revisit this in https://www.drupal.org/node/2418219. $form_state->setRedirectUrl(Url::fromUserInput('/' . $form_state->getValue('destination'))); } } diff --git a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php index d9c9494f994d..7e5440f7514e 100644 --- a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php +++ b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php @@ -114,7 +114,7 @@ public function testTimezoneFormat() { $this->assertEqual($date->format('Y/m/d H:i:s e'), '1972/10/11 12:25:21 UTC', 'Date has default UTC time zone and correct date/time.'); // Verify that the format method can override the time zone. - $this->assertEqual($date->format('Y/m/d H:i:s e', ['timezone' => 'America/New_York']), '1972/10/11 08:25:21 America/New_York', 'Date displayed overidden time zone and correct date/time'); + $this->assertEqual($date->format('Y/m/d H:i:s e', ['timezone' => 'America/New_York']), '1972/10/11 08:25:21 America/New_York', 'Date displayed overridden time zone and correct date/time'); // Verify that the date format method still displays the default time zone // for the date object. diff --git a/core/modules/system/tests/src/Functional/System/DateTimeTest.php b/core/modules/system/tests/src/Functional/System/DateTimeTest.php index 87926c91b5df..814770378daa 100644 --- a/core/modules/system/tests/src/Functional/System/DateTimeTest.php +++ b/core/modules/system/tests/src/Functional/System/DateTimeTest.php @@ -231,7 +231,7 @@ public function testEnteringDateTimeViaSelectors() { 'field_dt[0][value][minute]' => '30', ]; $this->drupalPostForm('node/add/page_with_date', $edit, t('Save')); - $this->assertText(t('Selected combination of day and month is not valid.'), 'Inorrect date failed validation'); + $this->assertText(t('Selected combination of day and month is not valid.'), 'Incorrect date failed validation'); $edit['field_dt[0][value][day]'] = '29'; $this->drupalPostForm('node/add/page_with_date', $edit, t('Save')); diff --git a/core/modules/system/tests/src/FunctionalJavascript/Form/TriggeringElementTest.php b/core/modules/system/tests/src/FunctionalJavascript/Form/TriggeringElementTest.php index 6eaf98cde5f9..b2ca9a5d646a 100644 --- a/core/modules/system/tests/src/FunctionalJavascript/Form/TriggeringElementTest.php +++ b/core/modules/system/tests/src/FunctionalJavascript/Form/TriggeringElementTest.php @@ -62,7 +62,8 @@ public function testNoButtonInfoInPost() { // Ensure submitting a form with buttons of different types results in the // triggering element being set to the first button, regardless of type. For // the FAPI 'button' type, this should result in the submit handler not - // executing. The types are 's'(ubmit), 'b'(utton), and 'i'(mage_button). + // executing. The types are 's' (submit), 'b' (button), and 'i' + // (image_button). $this->drupalGet($path . '/s/b/i'); $this->getSession()->getDriver()->submitForm('//form[@id="' . $form_html_id . '"]'); $assert_session->pageTextContains('The clicked button is button1.'); diff --git a/core/modules/system/tests/src/FunctionalJavascript/ThemeSettingsFormTest.php b/core/modules/system/tests/src/FunctionalJavascript/ThemeSettingsFormTest.php index e372a8ae91b3..1c3bd4e96b05 100644 --- a/core/modules/system/tests/src/FunctionalJavascript/ThemeSettingsFormTest.php +++ b/core/modules/system/tests/src/FunctionalJavascript/ThemeSettingsFormTest.php @@ -56,7 +56,7 @@ public function testFormSettingsSubmissionHandler($theme) { $assert_session->waitForButton('custom_logo_remove_button'); // Assert the new file is uploaded as temporary. This file should not be - // saved as permanent if settings are not submited. + // saved as permanent if settings are not submitted. $image_field = $this->xpath('//input[@name="custom_logo[fids]"]')[0]; $file = File::load($image_field->getValue()); $this->assertFalse($file->isPermanent()); diff --git a/core/modules/update/tests/src/Kernel/UpdateReportTest.php b/core/modules/update/tests/src/Kernel/UpdateReportTest.php index c7719c14cc1a..69aab606a175 100644 --- a/core/modules/update/tests/src/Kernel/UpdateReportTest.php +++ b/core/modules/update/tests/src/Kernel/UpdateReportTest.php @@ -45,7 +45,7 @@ public function providerTemplatePreprocessUpdateReport() { '$variables with data not set' => [ [], ], - '$variables with data as an interger' => [ + '$variables with data as an integer' => [ ['data' => 4], ], '$variables with data as a string' => [ diff --git a/core/modules/user/tests/src/Unit/UserAuthTest.php b/core/modules/user/tests/src/Unit/UserAuthTest.php index 77f30c8efc4c..eb2a65616c14 100644 --- a/core/modules/user/tests/src/Unit/UserAuthTest.php +++ b/core/modules/user/tests/src/Unit/UserAuthTest.php @@ -158,7 +158,7 @@ public function testAuthenticateWithCorrectPassword() { ->with($this->password, $this->testUser->getPassword()) ->will($this->returnValue(TRUE)); - $this->assertsame(1, $this->userAuth->authenticate($this->username, $this->password)); + $this->assertSame(1, $this->userAuth->authenticate($this->username, $this->password)); } /** @@ -185,7 +185,7 @@ public function testAuthenticateWithZeroPassword() { ->with(0, 0) ->will($this->returnValue(TRUE)); - $this->assertsame(2, $this->userAuth->authenticate($this->username, 0)); + $this->assertSame(2, $this->userAuth->authenticate($this->username, 0)); } /** @@ -217,7 +217,7 @@ public function testAuthenticateWithCorrectPasswordAndNewPasswordHash() { ->with($this->testUser->getPassword()) ->will($this->returnValue(TRUE)); - $this->assertsame(1, $this->userAuth->authenticate($this->username, $this->password)); + $this->assertSame(1, $this->userAuth->authenticate($this->username, $this->password)); } } diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php index 92c9fc2a8c94..ce837876d89d 100644 --- a/core/modules/views/src/Plugin/views/query/Sql.php +++ b/core/modules/views/src/Plugin/views/query/Sql.php @@ -868,8 +868,8 @@ public function addField($table, $field, $alias = '', $params = []) { } /** - * Remove all fields that may've been added; primarily used for summary - * mode where we're changing the query because we didn't get data we needed. + * Remove all fields that may have been added; primarily used for summary mode + * where we're changing the query because we didn't get data we needed. */ public function clearFields() { $this->fields = []; diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index 9ee37041c0dc..ddfe15e09df1 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -1848,7 +1848,7 @@ public function getTitle() { /** * Overrides the view's current title. * - * The tokens in the title get's replaced before rendering. + * The tokens in the title gets replaced before rendering. * * @return true * Always returns TRUE. diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php index 101e681ad87b..7bccb9b3831b 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php +++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/argument_validator/ArgumentValidatorTest.php @@ -38,7 +38,7 @@ protected function defineOptions() { */ public function validateArgument($arg) { if ($arg === 'this value should be replaced') { - // Set the argument to a numeric value so this is valid on PostgeSQL for + // Set the argument to a numeric value so this is valid on PostgreSQL for // numeric fields. $this->argument->argument = '1'; return TRUE; diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldNumericTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldNumericTest.php index 6cb4817e5825..747c8d525c5d 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FieldNumericTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/FieldNumericTest.php @@ -49,7 +49,7 @@ public function testFieldNumeric($field_settings, $values, $expected_values) { */ public function providerTestFieldNumeric() { return [ - 'no-formating' => [ + 'no-formatting' => [ [], [0, 0.1234, -0.1234, 1000.1234, -1000.1234], ['0', '0.1234', '-0.1234', '1,000.1234', '-1,000.1234'], diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php index d20fdb9ce137..7f1e86eb469b 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php @@ -251,7 +251,7 @@ protected function getGroupedExposedFilters() { } /** - * Tests that the InOperator filter can handle TranslateableMarkup. + * Tests that the InOperator filter can handle TranslatableMarkup. */ public function testFilterOptionAsMarkup() { $view = $this->prophesize(ViewExecutable::class); diff --git a/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php b/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php index 61b3eca0e2a5..b8edc39f8be5 100644 --- a/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php +++ b/core/modules/views/tests/src/Kernel/ViewsTemplateTest.php @@ -26,7 +26,7 @@ public function testTemplate() { $output = Views::getView('test_view_display_template')->preview(); $renderer = $this->container->get('renderer'); - // Check that the renderd output uses the correct template file. + // Check that the rendered output uses the correct template file. $this->assertStringContainsString('This module defines its own display template.', (string) $renderer->renderRoot($output)); } diff --git a/core/profiles/demo_umami/themes/umami/templates/classy/media-library/media-library-wrapper.html.twig b/core/profiles/demo_umami/themes/umami/templates/classy/media-library/media-library-wrapper.html.twig index 850f63aa1749..4d5458ac7955 100644 --- a/core/profiles/demo_umami/themes/umami/templates/classy/media-library/media-library-wrapper.html.twig +++ b/core/profiles/demo_umami/themes/umami/templates/classy/media-library/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * diff --git a/core/scripts/transliteration_data.php.txt b/core/scripts/transliteration_data.php.txt index e87d2fada8c9..6a9d881c0896 100644 --- a/core/scripts/transliteration_data.php.txt +++ b/core/scripts/transliteration_data.php.txt @@ -458,7 +458,7 @@ function read_intl_data() { // Then you need to do a bunch of language-specific or script-specific // transliterations. Here is hopefully a representative set. There are // quite a few scripts that don't appear to have rules currently, such - // as Etheopian. + // as Ethiopian. $ops .= 'Greek-Latin; '; $ops .= 'Cyrillic-Latin; '; $ops .= 'Armenian-Latin; '; diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php index 3ea9d7aea030..4d31ecda8bc6 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php @@ -125,7 +125,7 @@ public function testDialog() { $button2_dialog = $this->assertSession()->waitForElementVisible('css', 'div.ui-dialog-content'); $this->assertNotNull($button2_dialog, 'Non-modal content displays as expected.'); - // Use a link to close the pagnel opened by button 2. + // Use a link to close the panel opened by button 2. $this->getSession()->getPage()->clickLink('Link 4 (close non-modal if open)'); // Form modal. diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php index ccf719f4e922..af7bad75222e 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php @@ -48,7 +48,7 @@ public function testAjaxElementValidation() { $page->fillField('drivernumber', '12345'); $page->findField('spare_required_field')->focus(); - // The AJAX request/resonse will complete successfully when a InsertCommand + // The AJAX request/response will complete successfully when a InsertCommand // injects a message with a placeholder element into the DOM with the // submitted number. $placeholder_number = $assert->waitForElement('css', "ul.messages__list li.messages__item em:contains('12345')"); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php index 2b70fe65a60b..1c65b1e02a86 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/FormValuesTest.php @@ -73,7 +73,7 @@ public function testSimpleAjaxFormValue() { // The select element is disabled as the AJAX request is issued. $this->assertSession()->waitForElement('css', "select[name=\"$element_name\"]:disabled"); - // The select element is enabled as the response is receieved. + // The select element is enabled as the response is received. $this->assertSession()->waitForElement('css', "select[name=\"$element_name\"]:enabled"); $this->assertFileExists(DRUPAL_ROOT . '/' . $this->siteDirectory . '/error.log'); $this->assertStringContainsString('"The specified #ajax callback is empty or not callable."', file_get_contents(DRUPAL_ROOT . '/' . $this->siteDirectory . '/error.log')); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php index 04b824c57483..0073c74fc207 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php @@ -56,7 +56,7 @@ public function testMessageCommand() { $page->pressButton('Make Warning Message'); $this->waitForMessageVisible('I am a warning message in the default location.', NULL, 'warning'); - // Test that setting MessageCommand::$option['announce'] => '' supresses + // Test that setting MessageCommand::$option['announce'] => '' suppresses // screen reader announcement. $this->assertAnnounceNotContains('I am a warning message in the default location.'); $this->waitForMessageRemoved('I am a message in the default location.'); diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php index 9d4a1d624d76..c1e801dfe9b4 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php @@ -343,7 +343,7 @@ public function testConfigEntityUninstallComplex(array $entity_id_suffixes) { // is called as expected and with the correct dependencies. $called = \Drupal::state()->get('config_test.on_dependency_removal_called', []); $this->assertArrayNotHasKey($entity_3->id(), $called, 'ConfigEntityInterface::onDependencyRemoval() is not called for entity 3.'); - $this->assertSame([$entity_1->id(), $entity_4->id(), $entity_2->id(), $entity_5->id()], array_keys($called), 'The most dependent entites have ConfigEntityInterface::onDependencyRemoval() called first.'); + $this->assertSame([$entity_1->id(), $entity_4->id(), $entity_2->id(), $entity_5->id()], array_keys($called), 'The most dependent entities have ConfigEntityInterface::onDependencyRemoval() called first.'); $this->assertSame(['config' => [], 'content' => [], 'module' => ['node'], 'theme' => []], $called[$entity_1->id()]); $this->assertSame(['config' => [$entity_1->getConfigDependencyName()], 'content' => [], 'module' => [], 'theme' => []], $called[$entity_2->id()]); $this->assertSame(['config' => [$entity_1->getConfigDependencyName()], 'content' => [], 'module' => ['node'], 'theme' => []], $called[$entity_4->id()]); diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php index f66b3e4a9fd8..08bdceb16008 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php @@ -727,10 +727,10 @@ public function testConfigSaveWithWrappingSchemaDoubleBrackets() { $typed_values = [ 'tests' => [ [ - 'id' => 'cat:persion.dog', + 'id' => 'cat:persian.dog', 'foo' => 'cat', 'bar' => 'dog', - 'breed' => 'persion', + 'breed' => 'persian', ], ], ]; diff --git a/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php b/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php index 47e3596af97b..9299e79a011d 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php @@ -83,7 +83,7 @@ public function testQueryFetchClass() { * Confirms that we can fetch a record into a class using fetchObject. * * @see \Drupal\system\Tests\Database\FakeRecord - * @see \Drupal\Core\Database\StatementPrefech::fetchObject + * @see \Drupal\Core\Database\StatementPrefetch::fetchObject */ public function testQueryFetchObjectClass() { $records = 0; diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php index 9f582cd1d819..033d01fed3a0 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php @@ -31,7 +31,7 @@ protected function setUp(): void { parent::setUp(); $this->installEntitySchema('user'); - $this->installEntitySchema('entity_test_mulrev_chnged_revlog'); + $this->installEntitySchema('entity_test_mulrev_changed_rev'); $this->installSchema('system', 'sequences'); } @@ -53,7 +53,7 @@ public function testHasTranslationChanges() { /** @var \Drupal\Core\Entity\EntityStorageInterface $storage */ $storage = $this->container->get('entity_type.manager') - ->getStorage('entity_test_mulrev_chnged_revlog'); + ->getStorage('entity_test_mulrev_changed_rev'); /** @var \Drupal\entity_test\Entity\EntityTestMulRevChangedWithRevisionLog $entity */ $entity = $storage->create([ 'name' => $this->randomString(), diff --git a/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php index 39ee9a6aee29..a944087b201a 100644 --- a/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php +++ b/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php @@ -59,7 +59,7 @@ public function getClassTestCases() { FALSE, FieldItemList::class, ], - 'String (overriden class)' => [ + 'String (overridden class)' => [ 'string', static::class, static::class, diff --git a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php index f760cf9f0ddd..cf42b9b27cdc 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php @@ -827,7 +827,7 @@ protected function getClassyHash($type, $file) { 'container--media-library-content.html.twig' => 'dede085892e5039aefb3c2cc2dc2074b', 'media-library-item--small.html.twig' => 'e45cfe56961b3419feb8008a5abb7357', 'container--media-library-widget-selection.html.twig' => '70759ddf4d23f5cdd7ef62f3d3e0eda0', - 'media-library-wrapper.html.twig' => '3ca8cd32767c043cd376f8de42b70611', + 'media-library-wrapper.html.twig' => 'acd6cc6ac1bc47ad8085612294b1c369', 'media-library-item.html.twig' => '278c18d4f6ec1651a408a1fce3ec70a5', 'views-mini-pager.html.twig' => '92f8935c78df8c61ba1bb03c34e305a8', 'views-view-row-opml.html.twig' => 'defbd7edeff60ebb16a06414ef13db06', diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index 1090647b385e..f13f2504caee 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -369,7 +369,7 @@ private function bootKernel() { $this->container->get('module_handler')->loadAll(); } - // Setup the destion to the be frontpage by default. + // Setup the destination to the be frontpage by default. \Drupal::destination()->set('/'); // Write the core.extension configuration. diff --git a/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js b/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js index 2a48ae94df3d..7170d62d5caa 100644 --- a/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js +++ b/core/tests/Drupal/Nightwatch/Commands/drupalUninstall.js @@ -9,7 +9,7 @@ import { commandAsWebserver } from '../globals'; * @return {object} * The 'browser' object. */ -exports.command = function drupalUninstal(callback) { +exports.command = function drupalUninstall(callback) { const self = this; const prefix = this.globals.drupalDbPrefix; diff --git a/core/tests/Drupal/Tests/Component/DrupalComponentTest.php b/core/tests/Drupal/Tests/Component/DrupalComponentTest.php index 6f9d149a9b44..a74ac07fcd9b 100644 --- a/core/tests/Drupal/Tests/Component/DrupalComponentTest.php +++ b/core/tests/Drupal/Tests/Component/DrupalComponentTest.php @@ -101,14 +101,14 @@ protected function assertNoCoreUsage($class_path) { } /** - * Data provider for testAssertNoCoreUseage(). + * Data provider for testAssertNoCoreUsage(). * * @return array - * Data for testAssertNoCoreUseage() in the form: + * Data for testAssertNoCoreUsage() in the form: * - TRUE if the test passes, FALSE otherwise. * - File data as a string. This will be used as a virtual file. */ - public function providerAssertNoCoreUseage() { + public function providerAssertNoCoreUsage() { return [ [ TRUE, @@ -133,9 +133,9 @@ public function providerAssertNoCoreUseage() { /** * @covers \Drupal\Tests\Component\DrupalComponentTest::assertNoCoreUsage - * @dataProvider providerAssertNoCoreUseage + * @dataProvider providerAssertNoCoreUsage */ - public function testAssertNoCoreUseage($expected_pass, $file_data) { + public function testAssertNoCoreUsage($expected_pass, $file_data) { // Set up a virtual file to read. $vfs_root = vfsStream::setup('root'); vfsStream::newFile('Test.php')->at($vfs_root)->setContent($file_data); diff --git a/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php b/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php index 7de762a5cd9a..b4ab0ad7fee1 100644 --- a/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php +++ b/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php @@ -7,7 +7,7 @@ use Drupal\Tests\UnitTestCase; /** - * Tests for database URL to/from database connection array coversions. + * Tests for database URL to/from database connection array conversions. * * These tests run in isolation since we don't want the database static to * affect other tests. diff --git a/core/tests/Drupal/Tests/Core/PageCache/ChainRequestPolicyTest.php b/core/tests/Drupal/Tests/Core/PageCache/ChainRequestPolicyTest.php index f3babc47264c..5583a56c2dc7 100644 --- a/core/tests/Drupal/Tests/Core/PageCache/ChainRequestPolicyTest.php +++ b/core/tests/Drupal/Tests/Core/PageCache/ChainRequestPolicyTest.php @@ -154,7 +154,7 @@ public function testStopChainOnFirstDeny() { $this->policy->addPolicy($ignored_rule); $actual_result = $this->policy->check($this->request); - $this->assertsame(RequestPolicyInterface::DENY, $actual_result); + $this->assertSame(RequestPolicyInterface::DENY, $actual_result); } } diff --git a/core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php b/core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php index ed9230aaab30..5a4ab748d753 100644 --- a/core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php +++ b/core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php @@ -128,7 +128,7 @@ public function testStopChainOnFirstDeny() { $this->policy->addPolicy($ignored_rule); $actual_result = $this->policy->check($this->response, $this->request); - $this->assertsame(ResponsePolicyInterface::DENY, $actual_result); + $this->assertSame(ResponsePolicyInterface::DENY, $actual_result); } } diff --git a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php index 092525c75d55..59be7fb38aa7 100644 --- a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php +++ b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php @@ -684,7 +684,7 @@ public function providerTestAddCacheableDependency() { ], 'merge-attachments-metadata' => [ (new BubbleableMetadata())->setAttachments(['foo' => []]), - (new BubbleableMetadata())->setAttachments(['baro' => []]), + (new BubbleableMetadata())->setAttachments(['bar' => []]), (new BubbleableMetadata())->setAttachments(['foo' => [], 'bar' => []]), ], ]; diff --git a/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php b/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php index 0d83d8de3a11..2e153a9c5e31 100644 --- a/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php +++ b/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php @@ -19,7 +19,7 @@ class YamlTest extends UnitTestCase { * @covers ::getSerializer * @runInSeparateProcess */ - public function testGetSeralization() { + public function testGetSerialization() { new Settings(['yaml_parser_class' => YamlParserProxy::class]); $this->assertEquals(YamlParserProxy::class, Settings::get('yaml_parser_class')); diff --git a/core/tests/Drupal/Tests/Core/Site/SettingsTest.php b/core/tests/Drupal/Tests/Core/Site/SettingsTest.php index fc1580b2ba60..ae8e5e62562b 100644 --- a/core/tests/Drupal/Tests/Core/Site/SettingsTest.php +++ b/core/tests/Drupal/Tests/Core/Site/SettingsTest.php @@ -142,9 +142,9 @@ public function testGetInstanceReflection() { $settings = new Settings([]); $class = new \ReflectionClass(Settings::class); - $instace_property = $class->getProperty("instance"); - $instace_property->setAccessible(TRUE); - $instace_property->setValue(NULL); + $instance_property = $class->getProperty("instance"); + $instance_property->setAccessible(TRUE); + $instance_property->setValue(NULL); $this->expectException(\BadMethodCallException::class); $settings->getInstance(); diff --git a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php index b3e52305d16f..c22052113922 100644 --- a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php +++ b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php @@ -68,7 +68,7 @@ public function testFormatViaQueryParameter() { * * @covers ::getContentType */ - public function testUnknowContentTypeReturnsNull() { + public function testUnknownContentTypeReturnsNull() { $request = new Request(); $this->assertNull($this->contentNegotiation->getContentType($request)); @@ -79,7 +79,7 @@ public function testUnknowContentTypeReturnsNull() { * * @covers ::getContentType */ - public function testUnknowContentTypeButAjaxRequest() { + public function testUnknownContentTypeButAjaxRequest() { $request = new Request(); $request->headers->set('X-Requested-With', 'XMLHttpRequest'); diff --git a/core/themes/bartik/templates/classy/media-library/media-library-wrapper.html.twig b/core/themes/bartik/templates/classy/media-library/media-library-wrapper.html.twig index 850f63aa1749..4d5458ac7955 100644 --- a/core/themes/bartik/templates/classy/media-library/media-library-wrapper.html.twig +++ b/core/themes/bartik/templates/classy/media-library/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * diff --git a/core/themes/claro/css/components/form--managed-file.css b/core/themes/claro/css/components/form--managed-file.css index 20b11db446f5..b75546f1cca1 100644 --- a/core/themes/claro/css/components/form--managed-file.css +++ b/core/themes/claro/css/components/form--managed-file.css @@ -275,7 +275,7 @@ td .form-managed-file.no-meta .form-managed-file__image-preview { .form-managed-file__main .form-element--api-file { flex: 1 1 auto; - min-width: 1px; /* This makes the element to be shrinked on IE11 */ + min-width: 1px; /* This makes the element shrink on IE11 */ } /** diff --git a/core/themes/claro/css/components/form--managed-file.pcss.css b/core/themes/claro/css/components/form--managed-file.pcss.css index ae181f469c4c..793813cc1505 100644 --- a/core/themes/claro/css/components/form--managed-file.pcss.css +++ b/core/themes/claro/css/components/form--managed-file.pcss.css @@ -208,7 +208,7 @@ td .form-managed-file.no-meta .form-managed-file__image-preview { */ .form-managed-file__main .form-element--api-file { flex: 1 1 auto; - min-width: 1px; /* This makes the element to be shrinked on IE11 */ + min-width: 1px; /* This makes the element shrink on IE11 */ } /** diff --git a/core/themes/claro/css/components/tabledrag.css b/core/themes/claro/css/components/tabledrag.css index fb768eac2a33..de0db722782b 100644 --- a/core/themes/claro/css/components/tabledrag.css +++ b/core/themes/claro/css/components/tabledrag.css @@ -358,7 +358,7 @@ body.drag { * Tree is the visual representation for the simultaneously moved draggable * rows. * - * These rules are styleing the inline SVG that is placed inside the .indetation + * These rules are styling the inline SVG that is placed inside the .indentation * element. */ diff --git a/core/themes/claro/css/components/tabledrag.pcss.css b/core/themes/claro/css/components/tabledrag.pcss.css index f8c39e41db3d..1f95b68087dc 100644 --- a/core/themes/claro/css/components/tabledrag.pcss.css +++ b/core/themes/claro/css/components/tabledrag.pcss.css @@ -279,7 +279,7 @@ body.drag { * Tree is the visual representation for the simultaneously moved draggable * rows. * - * These rules are styleing the inline SVG that is placed inside the .indetation + * These rules are styling the inline SVG that is placed inside the .indentation * element. */ .tree { diff --git a/core/themes/claro/js/tabledrag.es6.js b/core/themes/claro/js/tabledrag.es6.js index f3e9ad093024..1e67f0c82c44 100644 --- a/core/themes/claro/js/tabledrag.es6.js +++ b/core/themes/claro/js/tabledrag.es6.js @@ -13,7 +13,7 @@ * - The initial content of the tabledrag-cell is wrapped into a new DOM element * ".tabledrag-cell-content__item". This new element is moved into an another * ".tabledrag-cell-content" division that contains the drag handle, the - * identation elements and the tabledrag changed mark as well. + * indentation elements and the tabledrag changed mark as well. * This is needed to keep all of these element in a single line * (https://www.drupal.org/node/3083044). * Claro introduced two theme functions for these: diff --git a/core/themes/claro/templates/classy/media-library/media-library-wrapper.html.twig b/core/themes/claro/templates/classy/media-library/media-library-wrapper.html.twig index 850f63aa1749..4d5458ac7955 100644 --- a/core/themes/claro/templates/classy/media-library/media-library-wrapper.html.twig +++ b/core/themes/claro/templates/classy/media-library/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * diff --git a/core/themes/claro/templates/form/field-multiple-value-form.html.twig b/core/themes/claro/templates/form/field-multiple-value-form.html.twig index c8d8a9b8145e..58bfe31cae73 100644 --- a/core/themes/claro/templates/form/field-multiple-value-form.html.twig +++ b/core/themes/claro/templates/form/field-multiple-value-form.html.twig @@ -5,7 +5,7 @@ * * Available variables for all fields: * - multiple: Whether there are multiple instances of the field. - * - disabled: Whether the inpur is disabled. + * - disabled: Whether the input is disabled. * * Available variables for single cardinality fields: * - elements: Form elements to be rendered. diff --git a/core/themes/claro/templates/status-report-counter.html.twig b/core/themes/claro/templates/status-report-counter.html.twig index 13ab8a84d46b..fe237b982e34 100644 --- a/core/themes/claro/templates/status-report-counter.html.twig +++ b/core/themes/claro/templates/status-report-counter.html.twig @@ -8,7 +8,7 @@ * - text: The text shown on counter. * - severity: The severity of the counter. * - * @ingroup themable + * @ingroup themeable */ #} {% diff --git a/core/themes/claro/templates/status-report-general-info.html.twig b/core/themes/claro/templates/status-report-general-info.html.twig index 5dad25dd0a4e..92717dd10c00 100644 --- a/core/themes/claro/templates/status-report-general-info.html.twig +++ b/core/themes/claro/templates/status-report-general-info.html.twig @@ -12,7 +12,7 @@ * - description: The description for current status of cron. * - cron.run_cron: An array to render a button for running cron. * - database_system: The status of database system: - * - value: The current status of database sytem. + * - value: The current status of database system. * - description: The description for current status of cron. * - database_system_version: The info about current database version: * - value: The current version of database. diff --git a/core/themes/classy/templates/media-library/media-library-wrapper.html.twig b/core/themes/classy/templates/media-library/media-library-wrapper.html.twig index 850f63aa1749..4d5458ac7955 100644 --- a/core/themes/classy/templates/media-library/media-library-wrapper.html.twig +++ b/core/themes/classy/templates/media-library/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * diff --git a/core/themes/seven/templates/classy/media-library/media-library-wrapper.html.twig b/core/themes/seven/templates/classy/media-library/media-library-wrapper.html.twig index 850f63aa1749..4d5458ac7955 100644 --- a/core/themes/seven/templates/classy/media-library/media-library-wrapper.html.twig +++ b/core/themes/seven/templates/classy/media-library/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * diff --git a/core/themes/seven/templates/status-report-counter.html.twig b/core/themes/seven/templates/status-report-counter.html.twig index 13ab8a84d46b..fe237b982e34 100644 --- a/core/themes/seven/templates/status-report-counter.html.twig +++ b/core/themes/seven/templates/status-report-counter.html.twig @@ -8,7 +8,7 @@ * - text: The text shown on counter. * - severity: The severity of the counter. * - * @ingroup themable + * @ingroup themeable */ #} {% diff --git a/core/themes/seven/templates/status-report-general-info.html.twig b/core/themes/seven/templates/status-report-general-info.html.twig index 5dad25dd0a4e..92717dd10c00 100644 --- a/core/themes/seven/templates/status-report-general-info.html.twig +++ b/core/themes/seven/templates/status-report-general-info.html.twig @@ -12,7 +12,7 @@ * - description: The description for current status of cron. * - cron.run_cron: An array to render a button for running cron. * - database_system: The status of database system: - * - value: The current status of database sytem. + * - value: The current status of database system. * - description: The description for current status of cron. * - database_system_version: The info about current database version: * - value: The current version of database. diff --git a/core/themes/stable/templates/admin/status-report-general-info.html.twig b/core/themes/stable/templates/admin/status-report-general-info.html.twig index c71d83965cf5..7e5541947b2e 100644 --- a/core/themes/stable/templates/admin/status-report-general-info.html.twig +++ b/core/themes/stable/templates/admin/status-report-general-info.html.twig @@ -12,7 +12,7 @@ * - description: The description for current status of cron. * - cron.run_cron: An array to render a button for running cron. * - database_system: The status of database system: - * - value: The current status of database sytem. + * - value: The current status of database system. * - description: The description for current status of cron. * - database_system_version: The info about current database version: * - value: The current version of database. diff --git a/core/themes/stable/templates/media-library/media-library-wrapper.html.twig b/core/themes/stable/templates/media-library/media-library-wrapper.html.twig index ce17ead145e7..01fcbf6519a0 100644 --- a/core/themes/stable/templates/media-library/media-library-wrapper.html.twig +++ b/core/themes/stable/templates/media-library/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * diff --git a/core/themes/stable9/templates/admin/status-report-general-info.html.twig b/core/themes/stable9/templates/admin/status-report-general-info.html.twig index e11a2b3d4de1..25d123d628f4 100644 --- a/core/themes/stable9/templates/admin/status-report-general-info.html.twig +++ b/core/themes/stable9/templates/admin/status-report-general-info.html.twig @@ -12,7 +12,7 @@ * - description: The description for current status of cron. * - cron.run_cron: An array to render a button for running cron. * - database_system: The status of database system: - * - value: The current status of database sytem. + * - value: The current status of database system. * - description: The description for current status of cron. * - database_system_version: The info about current database version: * - value: The current version of database. diff --git a/core/themes/stable9/templates/media-library/media-library-wrapper.html.twig b/core/themes/stable9/templates/media-library/media-library-wrapper.html.twig index c3cf2d65b9a3..9e3fd15496af 100644 --- a/core/themes/stable9/templates/media-library/media-library-wrapper.html.twig +++ b/core/themes/stable9/templates/media-library/media-library-wrapper.html.twig @@ -6,7 +6,7 @@ * * Available variables: * - attributes: HTML attributes for the containing element. - * - menu: The menu of availble media types to choose from. + * - menu: The menu of available media types to choose from. * - content: The form to add new media items, followed by the grid or table of * existing media items to choose from. * -- GitLab