diff --git a/INSTALL.mysql.txt b/INSTALL.mysql.txt index 95a87343335..71401557152 100644 --- a/INSTALL.mysql.txt +++ b/INSTALL.mysql.txt @@ -7,10 +7,10 @@ by your host). In the following examples, 'username' is an example MySQL user which has the CREATE and GRANT privileges. Use the appropriate user name for your system. -First, you must create a new database for your Drupal site (here, 'databasename' -is the name of the new database): +First, you must create a new database for your Drupal site (here, +'database_name' is the name of the new database): - mysqladmin -u username -p create databasename + mysqladmin -u username -p create database_name MySQL will prompt for the 'username' database password and then create the initial database files. Next you must log in and set the access database rights: @@ -21,12 +21,12 @@ Again, you will be asked for the 'username' database password. At the MySQL prompt, enter the following command: GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, - CREATE TEMPORARY TABLES ON databasename.* + CREATE TEMPORARY TABLES ON database_name.* TO 'username'@'localhost' IDENTIFIED BY 'password'; where: - 'databasename' is the name of your database + 'database_name' is the name of your database 'username' is the username of your MySQL account 'localhost' is the web server host where Drupal is installed 'password' is the password required for that username diff --git a/INSTALL.pgsql.txt b/INSTALL.pgsql.txt index 8fe80433bd6..c32e8e613c4 100644 --- a/INSTALL.pgsql.txt +++ b/INSTALL.pgsql.txt @@ -19,10 +19,10 @@ Note that the database must be created with UTF-8 (Unicode) encoding. This step is only necessary if you don't already have a database set up (e.g., by your host) or want to create a new database for use with Drupal - only. The following command creates a new database named 'databasename', + only. The following command creates a new database named 'database_name', which is owned by the previously created 'username': - createdb --encoding=UTF8 --owner=username databasename + createdb --encoding=UTF8 --owner=username database_name If there are no errors, then the command was successful. diff --git a/assets/scaffold/files/default.settings.php b/assets/scaffold/files/default.settings.php index 98b25a83581..9c876acbfff 100644 --- a/assets/scaffold/files/default.settings.php +++ b/assets/scaffold/files/default.settings.php @@ -77,7 +77,7 @@ * * @code * $databases['default']['default'] = [ - * 'database' => 'databasename', + * 'database' => 'database_name', * 'username' => 'sql_username', * 'password' => 'sql_password', * 'host' => 'localhost', @@ -193,7 +193,7 @@ * @code * $databases['default']['default'] = [ * 'driver' => 'pgsql', - * 'database' => 'databasename', + * 'database' => 'database_name', * 'username' => 'sql_username', * 'password' => 'sql_password', * 'host' => 'localhost', @@ -215,7 +215,7 @@ * 'driver' => 'my_driver', * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', - * 'database' => 'databasename', + * 'database' => 'database_name', * 'username' => 'sql_username', * 'password' => 'sql_password', * 'host' => 'localhost', @@ -230,7 +230,7 @@ * 'driver' => 'my_driver', * 'namespace' => 'Drupal\my_module\Driver\Database\my_driver', * 'autoload' => 'modules/my_module/src/Driver/Database/my_driver/', - * 'database' => 'databasename', + * 'database' => 'database_name', * 'username' => 'sql_username', * 'password' => 'sql_password', * 'host' => 'localhost', diff --git a/assets/scaffold/files/example.sites.php b/assets/scaffold/files/example.sites.php index 3b32b5aba16..35995136d3f 100644 --- a/assets/scaffold/files/example.sites.php +++ b/assets/scaffold/files/example.sites.php @@ -7,7 +7,7 @@ * Configuration file for multi-site support and directory aliasing feature. * * This file is required for multi-site support and also allows you to define a - * set of aliases that map hostnames, ports, and pathnames to configuration + * set of aliases that map host names, ports, and path names to configuration * directories in the sites directory. These aliases are loaded prior to * scanning for directories, and they are exempt from the normal discovery * rules. See default.settings.php to view how Drupal discovers the diff --git a/lib/Drupal.php b/lib/Drupal.php index 7fccfaa3fac..99db2aec845 100644 --- a/lib/Drupal.php +++ b/lib/Drupal.php @@ -346,7 +346,7 @@ public static function cache($bin = 'default') { * an object of a class that implements * \Drupal\Core\DependencyInjection\ContainerInjectionInterface. * - * One common usecase is to provide a class which contains the actual code + * One common use case is to provide a class which contains the actual code * of a hook implementation, without having to create a service. * * @param string $class diff --git a/lib/Drupal/Component/Utility/HtmlSerializerRules.php b/lib/Drupal/Component/Utility/HtmlSerializerRules.php index 3559850053d..d48db59a4e1 100644 --- a/lib/Drupal/Component/Utility/HtmlSerializerRules.php +++ b/lib/Drupal/Component/Utility/HtmlSerializerRules.php @@ -6,6 +6,8 @@ use Masterminds\HTML5\Serializer\OutputRules; +// cspell:ignore drupalhtmlbuilder + /** * Drupal-specific HTML5 serializer rules. * diff --git a/lib/Drupal/Core/Access/CsrfTokenGenerator.php b/lib/Drupal/Core/Access/CsrfTokenGenerator.php index d1903174743..81cb1f29aa6 100644 --- a/lib/Drupal/Core/Access/CsrfTokenGenerator.php +++ b/lib/Drupal/Core/Access/CsrfTokenGenerator.php @@ -87,8 +87,8 @@ public function validate($token, $value = '') { return FALSE; } $value = $this->computeToken($seed, $value); - // PHP 8.0 strictly typehints for hash_equals. Maintain BC until we can - // enforce scalar typehints on this method. + // PHP 8.0 strictly type hints for hash_equals. Maintain BC until we can + // enforce scalar type hints on this method. if (!is_string($token)) { return FALSE; } diff --git a/lib/Drupal/Core/Database/Install/Tasks.php b/lib/Drupal/Core/Database/Install/Tasks.php index c6debf27856..cedd550ca40 100644 --- a/lib/Drupal/Core/Database/Install/Tasks.php +++ b/lib/Drupal/Core/Database/Install/Tasks.php @@ -313,7 +313,7 @@ public function getFormOptions(array $database) { '#title' => t('Host'), '#default_value' => empty($database['host']) ? 'localhost' : $database['host'], '#size' => 45, - // Hostnames can be 255 characters long. + // Host names can be 255 characters long. '#maxlength' => 255, '#required' => TRUE, ]; diff --git a/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php b/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php index 34bb51689dc..7aa66fac0b4 100644 --- a/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php +++ b/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php @@ -33,11 +33,11 @@ abstract class TransactionManagerBase implements TransactionManagerInterface { * additional savepoints, and release any savepoint in the sequence. When * this happens, the database will implicitly release all the savepoints * created after the one released. Given Drupal implementation of the - * Transaction objects, we cannot force descoping of the corresponding - * Transaction savepoint objects from the manager, because they live in the - * scope of the calling code. This stack ensures that when an outlived - * Transaction object gets out of scope, it will not try to release on the - * database a savepoint that no longer exists. + * Transaction objects, we cannot force reducing the scope of the + * corresponding Transaction savepoint objects from the manager, because they + * live in the scope of the calling code. This stack ensures that when an + * outlived Transaction object gets out of scope, it will not try to release + * on the database a savepoint that no longer exists. * * Differently, rollbacks are strictly being checked for LIFO order: if a * rollback is requested against a savepoint that is not the last created, diff --git a/lib/Drupal/Core/DrupalKernel.php b/lib/Drupal/Core/DrupalKernel.php index 6c1a8e1bbaa..b79aee7716f 100644 --- a/lib/Drupal/Core/DrupalKernel.php +++ b/lib/Drupal/Core/DrupalKernel.php @@ -189,7 +189,7 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface { protected $containerNeedsDumping; /** - * List of discovered services.yml pathnames. + * List of discovered services.yml path names. * * This is a nested array whose top-level keys are 'app' and 'site', denoting * the origin of a service provider. Site-specific providers have to be diff --git a/lib/Drupal/Core/Entity/EntityForm.php b/lib/Drupal/Core/Entity/EntityForm.php index 18a70a62dfb..6e3043bd1d9 100644 --- a/lib/Drupal/Core/Entity/EntityForm.php +++ b/lib/Drupal/Core/Entity/EntityForm.php @@ -62,7 +62,7 @@ public function setOperation($operation) { * {@inheritdoc} */ public function getBaseFormId() { - // Assign ENTITYTYPE_form as base form ID to invoke corresponding + // Assign ENTITY_TYPE_form as base form ID to invoke corresponding // hook_form_alter(), #validate, #submit, and #theme callbacks, but only if // it is different from the actual form ID, since callbacks would be invoked // twice otherwise. diff --git a/lib/Drupal/Core/Extension/DatabaseDriverList.php b/lib/Drupal/Core/Extension/DatabaseDriverList.php index 3126faf2e35..809403b31f8 100644 --- a/lib/Drupal/Core/Extension/DatabaseDriverList.php +++ b/lib/Drupal/Core/Extension/DatabaseDriverList.php @@ -204,14 +204,14 @@ protected function recalculateInfo() { /** * {@inheritdoc} */ - public function getPathnames() { + public function getPathNames() { throw new \LogicException(__METHOD__ . '() is not implemented'); } /** * {@inheritdoc} */ - protected function recalculatePathnames() { + protected function recalculatePathNames() { throw new \LogicException(__METHOD__ . '() is not implemented'); } diff --git a/lib/Drupal/Core/Extension/ExtensionList.php b/lib/Drupal/Core/Extension/ExtensionList.php index 38f0f9f8246..6f4c4b7c3ac 100644 --- a/lib/Drupal/Core/Extension/ExtensionList.php +++ b/lib/Drupal/Core/Extension/ExtensionList.php @@ -170,14 +170,14 @@ public function reset() { $this->pathNames = NULL; try { - $this->state->delete($this->getPathnamesCacheId()); + $this->state->delete($this->getPathNamesCacheId()); } catch (DatabaseExceptionWrapper $e) { // Ignore exceptions caused by a non existing {key_value} table in the // early installer. } - $this->cache->delete($this->getPathnamesCacheId()); + $this->cache->delete($this->getPathNamesCacheId()); // @todo In the long run it would be great to add the reset, but the early // installer fails due to that. https://www.drupal.org/node/2719315 could // help to resolve with that. @@ -210,7 +210,7 @@ protected function getInfoCacheId() { * @return string * The filename cache ID. */ - protected function getPathnamesCacheId() { + protected function getPathNamesCacheId() { return "system.{$this->type}.files"; } @@ -413,15 +413,15 @@ protected function recalculateInfo() { * * @return string[] */ - public function getPathnames() { + public function getPathNames() { if ($this->pathNames === NULL) { - $cache_id = $this->getPathnamesCacheId(); + $cache_id = $this->getPathNamesCacheId(); if ($cache = $this->cache->get($cache_id)) { $path_names = $cache->data; } // We use $file_names below. elseif (!$path_names = $this->state->get($cache_id)) { - $path_names = $this->recalculatePathnames(); + $path_names = $this->recalculatePathNames(); // Store filenames to allow static::getPathname() to retrieve them // without having to rebuild or scan the filesystem. $this->state->set($cache_id, $path_names); @@ -438,7 +438,7 @@ public function getPathnames() { * @return string[] * An array of .info.yml file locations keyed by the extension machine name. */ - protected function recalculatePathnames() { + protected function recalculatePathNames() { $extensions = $this->getList(); ksort($extensions); @@ -518,7 +518,7 @@ public function getPathname($extension_name) { elseif (isset($this->pathNames[$extension_name])) { return $this->pathNames[$extension_name]; } - elseif (($path_names = $this->getPathnames()) && isset($path_names[$extension_name])) { + elseif (($path_names = $this->getPathNames()) && isset($path_names[$extension_name])) { return $path_names[$extension_name]; } throw new UnknownExtensionException("The {$this->type} $extension_name does not exist."); diff --git a/lib/Drupal/Core/Installer/ExtensionListTrait.php b/lib/Drupal/Core/Installer/ExtensionListTrait.php index bbfae1fe09c..29c80811a5a 100644 --- a/lib/Drupal/Core/Installer/ExtensionListTrait.php +++ b/lib/Drupal/Core/Installer/ExtensionListTrait.php @@ -43,7 +43,7 @@ public function getPathname($extension_name) { elseif (isset(static::$staticAddedPathNames[$extension_name])) { return static::$staticAddedPathNames[$extension_name]; } - elseif (($path_names = $this->getPathnames()) && isset($path_names[$extension_name])) { + elseif (($path_names = $this->getPathNames()) && isset($path_names[$extension_name])) { // Ensure we don't have to do path scanning more than really needed. foreach ($path_names as $extension => $path_name) { static::$staticAddedPathNames[$extension] = $path_name; diff --git a/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php b/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php index fd2d1ff0429..a768b0b8978 100644 --- a/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php +++ b/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php @@ -2,6 +2,8 @@ namespace Drupal\Core\Render; +// cspell:ignore turbolinks + use Drupal\Core\Asset\AssetCollectionRendererInterface; use Drupal\Core\Asset\AssetResolverInterface; use Drupal\Core\Asset\AttachedAssets; diff --git a/lib/Drupal/Core/Routing/RouteProvider.php b/lib/Drupal/Core/Routing/RouteProvider.php index 8f11bb00a2d..7c5b7e9e0fa 100644 --- a/lib/Drupal/Core/Routing/RouteProvider.php +++ b/lib/Drupal/Core/Routing/RouteProvider.php @@ -16,6 +16,8 @@ use Symfony\Component\Routing\RouteCollection; use Drupal\Core\Database\Connection; +// cspell:ignore filesort + /** * A Route Provider front-end for all Drupal-stored routes. */ diff --git a/lib/Drupal/Core/Test/TestDiscovery.php b/lib/Drupal/Core/Test/TestDiscovery.php index d6e2336375f..16c551ed06e 100644 --- a/lib/Drupal/Core/Test/TestDiscovery.php +++ b/lib/Drupal/Core/Test/TestDiscovery.php @@ -163,7 +163,7 @@ public function getTestClasses($extension = NULL, array $types = []) { // Prevent expensive class loader lookups for each reflected test class by // registering the complete classmap of test classes to the class loader. // This also ensures that test classes are loaded from the discovered - // pathnames; a namespace/classname mismatch will throw an exception. + // path names; a namespace/classname mismatch will throw an exception. $this->classLoader->addClassMap($classmap); foreach ($classmap as $classname => $pathname) { @@ -213,7 +213,7 @@ public function getTestClasses($extension = NULL, array $types = []) { * * @return array * A classmap containing all discovered class files; i.e., a map of - * fully-qualified classnames to pathnames. + * fully-qualified classnames to path names. */ public function findAllClassFiles($extension = NULL) { $classmap = []; @@ -247,7 +247,7 @@ public function findAllClassFiles($extension = NULL) { * * @return array * An associative array whose keys are fully-qualified class names and whose - * values are corresponding filesystem pathnames. + * values are corresponding filesystem path names. * * @throws \InvalidArgumentException * If $namespace_prefix does not end in a namespace separator (backslash). diff --git a/lib/Drupal/Core/Update/UpdateRegistry.php b/lib/Drupal/Core/Update/UpdateRegistry.php index 4db46fc3693..f9a0b85a063 100644 --- a/lib/Drupal/Core/Update/UpdateRegistry.php +++ b/lib/Drupal/Core/Update/UpdateRegistry.php @@ -9,6 +9,8 @@ use Drupal\Core\KeyValueStore\KeyValueStoreInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; +// cspell:ignore updatetype + /** * Provides all and missing update implementations. * diff --git a/misc/ajax.js b/misc/ajax.js index ae1df4b9ed4..4f1cf028606 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -724,7 +724,7 @@ * The Ajax object will, if instructed, bind to a key press response. This * will test to see if the key press is valid to trigger this event and * if it is, trigger it for us and prevent other keypresses from triggering. - * In this case we're handling RETURN and SPACEBAR keypresses (event codes 13 + * In this case we're handling RETURN and SPACE BAR keypresses (event codes 13 * and 32. RETURN is often used to submit a form when in a textfield, and * SPACE is often used to activate an element without submitting. * @@ -739,7 +739,7 @@ // Detect enter key and space bar and allow the standard response for them, // except for form elements of type 'text', 'tel', 'number' and 'textarea', - // where the spacebar activation causes inappropriate activation if + // where the space bar activation causes inappropriate activation if // #ajax['keypress'] is TRUE. On a text-type widget a space should always // be a space. if ( diff --git a/misc/cspell/dictionary.txt b/misc/cspell/dictionary.txt index 824b4affecb..8f9a117af00 100644 --- a/misc/cspell/dictionary.txt +++ b/misc/cspell/dictionary.txt @@ -178,7 +178,6 @@ customevent customrequest cweagans dailymotion -databasename datelist daterange datestamp @@ -204,7 +203,6 @@ desaturate desaturated desaturates desaturating -descoping destructable devel deviantart @@ -257,7 +255,6 @@ endmacro endset endtrans enoki -entitytype entityviewedit errmode etag @@ -293,7 +290,6 @@ fieldlinks fieldnames fieldsets filemime -filesort filesystems filetransfer findwith @@ -339,7 +335,6 @@ hmac hoglet hookname hosters -hostnames hrefs htkey htmlcorrector @@ -379,7 +374,6 @@ johansson jqueryui jsonlint jssdk -jumplinks justinrainbow kangarookitten kernighan @@ -397,7 +391,6 @@ kword lamoids languageswitcher libc -libmysqlclient licious lified lightninggreen @@ -478,7 +471,6 @@ multibyte multicardinality multifield multilanguage -multipage multipass multisite multistar @@ -494,7 +486,6 @@ namespacing navs ndocs necolas -negotiatiors newcol newfieldinitial newnode @@ -559,7 +550,6 @@ parseable parsererror pastafazoul pathauto -pathnames pcre pcss peast @@ -718,7 +708,6 @@ smalldatetime somecompany sortablejs sourceediting -spacebar specialchars spiffiness splitbutton @@ -863,12 +852,9 @@ trgm trid troopal truecolor -turbolinks twistie twocol typehint -typehinted -typehints tzid uids ulwa @@ -903,12 +889,10 @@ untabbable upcasted upcasting updateprogress -updatetype uploaders uploadprogress upscaling urandom -usecase userid userinfo userref diff --git a/modules/field/tests/src/Functional/TranslationWebTest.php b/modules/field/tests/src/Functional/TranslationWebTest.php index 71a5cee4fb4..63b0b82056f 100644 --- a/modules/field/tests/src/Functional/TranslationWebTest.php +++ b/modules/field/tests/src/Functional/TranslationWebTest.php @@ -7,7 +7,7 @@ use Drupal\language\Entity\ConfigurableLanguage; /** - * Tests multilanguage fields logic that require a full environment. + * Tests multilingual fields logic that require a full environment. * * @group field */ diff --git a/modules/field/tests/src/Kernel/TranslationTest.php b/modules/field/tests/src/Kernel/TranslationTest.php index f6308cc0a7a..d6f3b4bdea5 100644 --- a/modules/field/tests/src/Kernel/TranslationTest.php +++ b/modules/field/tests/src/Kernel/TranslationTest.php @@ -7,9 +7,9 @@ use Drupal\field\Entity\FieldStorageConfig; /** - * Tests multilanguage fields logic. + * Tests multilingual fields logic. * - * The following tests will check the multilanguage logic in field handling. + * The following tests will check the multilingual logic in field handling. * * @group field */ diff --git a/modules/field_ui/src/FieldUI.php b/modules/field_ui/src/FieldUI.php index 0d5d7771dc3..616012d6a78 100644 --- a/modules/field_ui/src/FieldUI.php +++ b/modules/field_ui/src/FieldUI.php @@ -30,7 +30,7 @@ public static function getOverviewRouteInfo($entity_type_id, $bundle) { } /** - * Returns the next redirect path in a multipage sequence. + * Returns the next redirect path in a multi-page sequence. * * @param array $destinations * An array of destinations to redirect to. diff --git a/modules/jsonapi/jsonapi.api.php b/modules/jsonapi/jsonapi.api.php index 208b169bbe9..4c024f814bc 100644 --- a/modules/jsonapi/jsonapi.api.php +++ b/modules/jsonapi/jsonapi.api.php @@ -98,7 +98,7 @@ * revision ID. The `rel` negotiator takes a version argument which is either * the string `latest-version` or the string `working-copy`. * - * In the future, other negotiatiors may be developed, such as negotiatiors that + * In the future, other negotiators may be developed, such as negotiators that * are UUID-, timestamp-, or workspace-based. * * To illustrate how a particular entity revision is requested, imagine a node diff --git a/modules/media/tests/src/Kernel/MediaTranslationTest.php b/modules/media/tests/src/Kernel/MediaTranslationTest.php index 91596d3de21..5ba96f3ba44 100644 --- a/modules/media/tests/src/Kernel/MediaTranslationTest.php +++ b/modules/media/tests/src/Kernel/MediaTranslationTest.php @@ -6,7 +6,7 @@ use Drupal\content_translation\ContentTranslationHandler; /** - * Tests multilanguage fields logic. + * Tests multilingual fields logic. * * @group media */ diff --git a/modules/media_library/js/media_library.ui.js b/modules/media_library/js/media_library.ui.js index 443a426e219..07023660ad7 100644 --- a/modules/media_library/js/media_library.ui.js +++ b/modules/media_library/js/media_library.ui.js @@ -58,7 +58,7 @@ $(once('media-library-menu-item', $menu.find('a'))) .on('keypress', (e) => { // The AJAX link has the button role, so we need to make sure the link - // is also triggered when pressing the spacebar. + // is also triggered when pressing the space bar. if (e.which === 32) { e.preventDefault(); e.stopPropagation(); diff --git a/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php b/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php index 7eae54e641d..69d3628e3a6 100644 --- a/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php +++ b/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php @@ -212,7 +212,7 @@ public function testWidget() { $this->assertAnnounceContains('Showing Type Three media.'); $this->switchToMediaType('One'); $this->assertAnnounceContains('Showing Type One media.'); - // Assert the links can be triggered by via the spacebar. + // Assert the links can be triggered by via the space bar. $assert_session->elementExists('named', ['link', 'Type Three'])->keyPress(32); $this->assertAnnounceContains('Showing Type Three media.'); $assert_session->elementExists('css', '.ui-dialog-titlebar-close')->click(); diff --git a/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php b/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php index e27ef369fa2..503a6c7c63e 100644 --- a/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php +++ b/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php @@ -8,6 +8,8 @@ use Drupal\mysql\Driver\Database\mysql\Connection; use Drupal\Core\Database\DatabaseNotFoundException; +// cspell:ignore libmysqlclient + /** * Specifies installation tasks for MySQL and equivalent databases. */ diff --git a/modules/system/system.install b/modules/system/system.install index 2029f6608d9..11e0dc12c4a 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1357,7 +1357,7 @@ function system_requirements($phase) { ]; } - // See if trusted hostnames have been configured, and warn the user if they + // See if trusted host names have been configured, and warn the user if they // are not set. if ($phase == 'runtime') { $trusted_host_patterns = Settings::get('trusted_host_patterns'); diff --git a/modules/tour/tests/src/Functional/TourTestBase.php b/modules/tour/tests/src/Functional/TourTestBase.php index 6fabf4c7ec2..eea6f3a0a69 100644 --- a/modules/tour/tests/src/Functional/TourTestBase.php +++ b/modules/tour/tests/src/Functional/TourTestBase.php @@ -17,7 +17,7 @@ abstract class TourTestBase extends BrowserTestBase { * // Basic example. * $this->assertTourTips(); * - * // Advanced example. The following would be used for multipage or + * // Advanced example. The following would be used for multi-page or * // targeting a specific subset of tips. * $tips = array(); * $tips[] = array('data-id' => 'foo'); diff --git a/modules/views/tests/src/Unit/Plugin/query/SqlTest.php b/modules/views/tests/src/Unit/Plugin/query/SqlTest.php index 90366e10bc2..6338363eecd 100644 --- a/modules/views/tests/src/Unit/Plugin/query/SqlTest.php +++ b/modules/views/tests/src/Unit/Plugin/query/SqlTest.php @@ -297,7 +297,7 @@ public function testLoadEntitiesWithNoRelationshipAndNoRevision() { 'id' => 1, ]); // Note: Let the same entity be returned multiple times, for example to - // support the translation usecase. + // support the translation use case. $result[] = new ResultRow([ 'id' => 2, ]); diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3b44c182acc..1acb8cc92fc 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -22,7 +22,7 @@ - + diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index ea383dd7e19..56ad3e553f4 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -271,7 +271,7 @@ All arguments are long options. Required when running tests without a Drupal installation that contains default database connection info in settings.php. Examples: - mysql://username:password@localhost/databasename#table_prefix + mysql://username:password@localhost/database_name#table_prefix sqlite://localhost/relative/path/db.sqlite sqlite://localhost//absolute/path/db.sqlite diff --git a/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php b/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php index 7c952fdb9fa..32d411ac1df 100644 --- a/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php +++ b/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php @@ -101,7 +101,7 @@ protected function configure() { ->addOption('json', NULL, InputOption::VALUE_NONE, 'Output test site connection details in JSON.') ->addUsage('--setup-file core/tests/Drupal/TestSite/TestSiteMultilingualInstallTestScript.php --json') ->addUsage('--install-profile demo_umami --langcode fr') - ->addUsage('--base-url "http://example.com" --db-url "mysql://username:password@localhost/databasename#table_prefix"'); + ->addUsage('--base-url "http://example.com" --db-url "mysql://username:password@localhost/database_name#table_prefix"'); } /** diff --git a/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php b/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php index d3ca19973c1..5820a7a48fc 100644 --- a/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php +++ b/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php @@ -32,7 +32,7 @@ protected function configure() { ->addOption('db-url', NULL, InputOption::VALUE_OPTIONAL, 'URL for database. Defaults to the environment variable SIMPLETEST_DB.', getenv('SIMPLETEST_DB')) ->addOption('keep-lock', NULL, InputOption::VALUE_NONE, 'Keeps the database prefix lock. Useful for ensuring test isolation when running concurrent tests.') ->addUsage('test12345678') - ->addUsage('test12345678 --db-url "mysql://username:password@localhost/databasename#table_prefix"') + ->addUsage('test12345678 --db-url "mysql://username:password@localhost/database_name#table_prefix"') ->addUsage('test12345678 --keep-lock'); } diff --git a/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php b/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php index 7b97b39c26b..5411e6d15a5 100644 --- a/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php +++ b/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php @@ -57,7 +57,7 @@ function ($foo) {}, [], ['foo' => NULL], [], [NULL], ]; // Test with a raw value that overrides the provided upcast value, since - // it is not typehinted. + // it is not type hinted. $scalars = ['foo' => 'baz']; $objects = ['foo' => new \stdClass()]; $data[] = [ diff --git a/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php b/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php index d48adaaf103..8e440aefff9 100644 --- a/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php +++ b/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php @@ -39,7 +39,7 @@ public function providerTestValidateHostname() { $data[] = ['security<.drupal.org:80', 'HTTP_HOST with < is invalid']; $data[] = ['security..drupal.org:80', 'HTTP_HOST with .. is invalid']; - // Verifies hostnames that are too long, or have too many parts are + // Verifies host names that are too long, or have too many parts are // invalid. $data[] = [str_repeat('x', 1000) . '.security.drupal.org:80', 'HTTP_HOST with more than 1000 characters is invalid.']; $data[] = [str_repeat('x.', 100) . 'security.drupal.org:80', 'HTTP_HOST with more than 100 subdomains is invalid.']; diff --git a/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php b/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php index fb96f146b40..3e90d94c93d 100644 --- a/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php +++ b/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php @@ -137,12 +137,12 @@ public function testGetAllInstalledInfo() { } /** - * @covers ::getPathnames + * @covers ::getPathNames */ - public function testGetPathnames() { + public function testGetPathNames() { $test_extension_list = $this->setupTestExtensionList(); - $filenames = $test_extension_list->getPathnames(); + $filenames = $test_extension_list->getPathNames(); $this->assertEquals([ 'test_name' => 'example/test_name/test_name.info.yml', ], $filenames); @@ -189,7 +189,7 @@ public function testReset() { $this->assertEquals('example/test_name', $path); $pathname = $test_extension_list->getPathname('test_name'); $this->assertEquals('example/test_name/test_name.info.yml', $pathname); - $filenames = $test_extension_list->getPathnames(); + $filenames = $test_extension_list->getPathNames(); $this->assertEquals([ 'test_name' => 'example/test_name/test_name.info.yml', ], $filenames); @@ -201,7 +201,7 @@ public function testReset() { $this->assertEquals('example/test_name', $path); $pathname = $test_extension_list->getPathname('test_name'); $this->assertEquals('example/test_name/test_name.info.yml', $pathname); - $filenames = $test_extension_list->getPathnames(); + $filenames = $test_extension_list->getPathNames(); $this->assertEquals([ 'test_name' => 'example/test_name/test_name.info.yml', ], $filenames); diff --git a/tests/Drupal/Tests/Core/Path/PathValidatorTest.php b/tests/Drupal/Tests/Core/Path/PathValidatorTest.php index 62e295861d0..3391aeb9424 100644 --- a/tests/Drupal/Tests/Core/Path/PathValidatorTest.php +++ b/tests/Drupal/Tests/Core/Path/PathValidatorTest.php @@ -79,7 +79,7 @@ public function testIsValidWithFrontpage() { } /** - * Tests the isValid() method for (used for jumplinks). + * Tests the isValid() method for (used for jump links). * * @covers ::isValid */