From 3c1a449c371470df27c4866e84e3515d9e567a88 Mon Sep 17 00:00:00 2001
From: xjm <xjm@65776.no-reply.drupal.org>
Date: Fri, 10 Nov 2023 11:02:03 -0600
Subject: [PATCH] Issue #3391788 by quietone, xjm: Fix spelling of function
 names in tests

---
 core/misc/cspell/dictionary.txt               | 12 --------
 .../src/Functional/DateTimeWidgetTest.php     | 28 +++++++++----------
 ...nlyTest.php => EntityTestDateOnlyTest.php} |  4 +--
 .../tests/src/Kernel/DateTimeItemTest.php     |  6 ++--
 .../tests/src/Kernel/FieldDataCountTest.php   | 10 +++----
 .../FunctionalJavascript/ManageFieldsTest.php |  2 +-
 .../tests/src/Functional/MenuUiTest.php       |  2 +-
 .../src/Functional/PathLanguageUiTest.php     |  2 +-
 .../Views/StyleSerializerKernelTest.php       |  2 +-
 .../Form/ElementsTableSelectTest.php          |  4 +--
 .../src/Functional/TermTranslationTest.php    |  4 +--
 .../src/Kernel/RenderCacheIntegrationTest.php | 16 +++++------
 .../tests/src/Kernel/ViewsPreprocessTest.php  |  2 +-
 .../Extension/ModuleExtensionListTest.php     |  2 +-
 .../ThemeEngineExtensionListTest.php          |  2 +-
 .../Core/Extension/ThemeExtensionListTest.php |  2 +-
 .../Tests/Core/Access/AccessResultTest.php    |  6 ++--
 .../Compiler/TaggedHandlersPassTest.php       |  4 +--
 .../Tests/Core/Entity/EntityTypeTest.php      |  4 +--
 .../Tests/Core/Menu/MenuActiveTrailTest.php   |  6 ++--
 .../Core/Render/RendererPlaceholdersTest.php  |  6 ++--
 21 files changed, 57 insertions(+), 69 deletions(-)
 rename core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/{EntityTestDateonlyTest.php => EntityTestDateOnlyTest.php} (97%)

diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt
index a9768bf7e060..85517491f7ef 100644
--- a/core/misc/cspell/dictionary.txt
+++ b/core/misc/cspell/dictionary.txt
@@ -16,7 +16,6 @@ alphadecimal
 alternatif
 amphibius
 ampm
-andif
 annot
 anonyme
 anothermodule
@@ -220,7 +219,6 @@ cádiz
 databasename
 datas
 datelist
-dateonly
 daterange
 datestamp
 datetimeiso
@@ -242,7 +240,6 @@ denormalizers
 dependee
 dependee's
 dependees
-depenencies
 deprioritize
 derivedfrom
 desaturate
@@ -288,7 +285,6 @@ drupalelementstyle
 drupalelementstylecommand
 drupalelementstyleediting
 drupalelementstyleui
-drupalget
 drupalhtmlbuilder
 drupalimage
 drupalin
@@ -394,8 +390,6 @@ funic
 furchtbar
 gabilondo
 gethttpclient
-getlist
-getview
 gids
 gloop
 gnumeric
@@ -410,7 +404,6 @@ guzzlehttp
 gzipped
 hande
 harkonnen
-hasdata
 hasher
 hashmarks
 hateoas
@@ -492,7 +485,6 @@ lamoids
 langcode
 langcodes
 languageswitcher
-lazybuilder
 libc
 libmysqlclient
 licious
@@ -504,7 +496,6 @@ linkability
 linkback
 linkgenerator
 linkification
-linksby
 linkset
 linktext
 lisu
@@ -660,7 +651,6 @@ opendocument
 openxmlformats
 optgroups
 optin
-optionchecker
 orgchart
 ossp
 otel
@@ -983,7 +973,6 @@ testfilename
 testfilter
 testfunc
 testfunction
-testget
 testgroups
 testid
 testitem
@@ -994,7 +983,6 @@ testload
 testlogger
 testname
 testproject
-testservice
 teststring
 testsuite
 testsuites
diff --git a/core/modules/datetime/tests/src/Functional/DateTimeWidgetTest.php b/core/modules/datetime/tests/src/Functional/DateTimeWidgetTest.php
index 84c1d934ae23..6ffc77414011 100644
--- a/core/modules/datetime/tests/src/Functional/DateTimeWidgetTest.php
+++ b/core/modules/datetime/tests/src/Functional/DateTimeWidgetTest.php
@@ -34,13 +34,13 @@ protected function getTestFieldType() {
   /**
    * Test default value functionality.
    */
-  public function testDateonlyDefaultValue() {
+  public function testDateOnlyDefaultValue() {
     // Create a test content type.
-    $this->drupalCreateContentType(['type' => 'dateonly_content']);
+    $this->drupalCreateContentType(['type' => 'date_only_content']);
 
     // Create a field storage with settings to validate.
     $field_storage = FieldStorageConfig::create([
-      'field_name' => 'field_dateonly',
+      'field_name' => 'field_date_only',
       'entity_type' => 'node',
       'type' => 'datetime',
       'settings' => ['datetime_type' => 'date'],
@@ -49,17 +49,17 @@ public function testDateonlyDefaultValue() {
 
     $field = FieldConfig::create([
       'field_storage' => $field_storage,
-      'bundle' => 'dateonly_content',
+      'bundle' => 'date_only_content',
     ]);
     $field->save();
 
     $edit = [
-      'fields[field_dateonly][region]' => 'content',
-      'fields[field_dateonly][type]' => 'datetime_default',
+      'fields[field_date_only][region]' => 'content',
+      'fields[field_date_only][type]' => 'datetime_default',
     ];
-    $this->drupalGet('admin/structure/types/manage/dateonly_content/form-display');
+    $this->drupalGet('admin/structure/types/manage/date_only_content/form-display');
     $this->submitForm($edit, 'Save');
-    $this->drupalGet('admin/structure/types/manage/dateonly_content/display');
+    $this->drupalGet('admin/structure/types/manage/date_only_content/display');
     $this->submitForm($edit, 'Save');
 
     // Set now as default_value.
@@ -67,11 +67,11 @@ public function testDateonlyDefaultValue() {
       'set_default_value' => '1',
       'default_value_input[default_date_type]' => 'now',
     ];
-    $this->drupalGet('admin/structure/types/manage/dateonly_content/fields/node.dateonly_content.field_dateonly');
+    $this->drupalGet('admin/structure/types/manage/date_only_content/fields/node.date_only_content.field_date_only');
     $this->submitForm($edit, 'Save settings');
 
     // Check that default value is selected in default value form.
-    $this->drupalGet('admin/structure/types/manage/dateonly_content/fields/node.dateonly_content.field_dateonly');
+    $this->drupalGet('admin/structure/types/manage/date_only_content/fields/node.date_only_content.field_date_only');
     $option_field = $this->assertSession()->optionExists('edit-default-value-input-default-date-type', 'now');
     $this->assertTrue($option_field->hasAttribute('selected'));
     $this->assertSession()->fieldValueEquals('default_value_input[default_date]', '');
@@ -85,20 +85,20 @@ public function testDateonlyDefaultValue() {
       // The time of the request is determined very early on in the request so
       // use the current time prior to making a request.
       $request_time = $this->container->get('datetime.time')->getCurrentTime();
-      $this->drupalGet('node/add/dateonly_content');
+      $this->drupalGet('node/add/date_only_content');
 
       $today = $this->dateFormatter->format($request_time, 'html_date', NULL, $timezone);
-      $this->assertSession()->fieldValueEquals('field_dateonly[0][value][date]', $today);
+      $this->assertSession()->fieldValueEquals('field_date_only[0][value][date]', $today);
 
       $edit = [
         'title[0][value]' => $timezone,
       ];
       $this->submitForm($edit, 'Save');
-      $this->assertSession()->pageTextContains('dateonly_content ' . $timezone . ' has been created');
+      $this->assertSession()->pageTextContains('date_only_content ' . $timezone . ' has been created');
 
       $node = $this->drupalGetNodeByTitle($timezone);
       $today_storage = $this->dateFormatter->format($request_time, 'html_date', NULL, $timezone);
-      $this->assertEquals($today_storage, $node->field_dateonly->value);
+      $this->assertEquals($today_storage, $node->field_date_only->value);
     }
   }
 
diff --git a/core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php b/core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php
similarity index 97%
rename from core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php
rename to core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php
index cf1c247f3917..4994f1691d8c 100644
--- a/core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php
+++ b/core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php
@@ -16,7 +16,7 @@
  *
  * @group datetime
  */
-class EntityTestDateonlyTest extends EntityTestResourceTestBase {
+class EntityTestDateOnlyTest extends EntityTestResourceTestBase {
 
   use AnonResourceTestTrait;
 
@@ -37,7 +37,7 @@ class EntityTestDateonlyTest extends EntityTestResourceTestBase {
    *
    * @var string
    */
-  protected static $fieldName = 'field_dateonly';
+  protected static $fieldName = 'field_date_only';
 
   /**
    * {@inheritdoc}
diff --git a/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php b/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php
index 760013889614..5119e78b88b4 100644
--- a/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php
+++ b/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php
@@ -316,9 +316,9 @@ public function datetimeValidationProvider() {
   /**
    * Tests the constraint validations for fields with date only.
    *
-   * @dataProvider dateonlyValidationProvider
+   * @dataProvider dateOnlyValidationProvider
    */
-  public function testDateonlyValidation($value) {
+  public function testDateOnlyValidation($value) {
     $this->expectException(AssertionFailedError::class);
 
     $this->fieldStorage->setSetting('datetime_type', DateTimeItem::DATETIME_TYPE_DATE);
@@ -332,7 +332,7 @@ public function testDateonlyValidation($value) {
   /**
    * Provider for testDatetimeValidation().
    */
-  public function dateonlyValidationProvider() {
+  public function dateOnlyValidationProvider() {
     return [
       // Valid date strings, but unsupported by DateTimeItem.
       ['Thu, 03 Nov 2014'],
diff --git a/core/modules/field/tests/src/Kernel/FieldDataCountTest.php b/core/modules/field/tests/src/Kernel/FieldDataCountTest.php
index 2610b31c0a55..dc99bf4a5c13 100644
--- a/core/modules/field/tests/src/Kernel/FieldDataCountTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldDataCountTest.php
@@ -63,7 +63,7 @@ public function testEntityCountAndHasData() {
       'bundle' => 'entity_test',
     ])->save();
 
-    $this->assertFalse($field_storage->hasdata(), 'There are no entities with field data.');
+    $this->assertFalse($field_storage->hasData(), 'There are no entities with field data.');
     $this->assertSame(0, $this->storage->countFieldData($field_storage), 'There are 0 entities with field data.');
 
     // Create 1 entity without the field.
@@ -71,7 +71,7 @@ public function testEntityCountAndHasData() {
     $entity->name->value = $this->randomMachineName();
     $entity->save();
 
-    $this->assertFalse($field_storage->hasdata(), 'There are no entities with field data.');
+    $this->assertFalse($field_storage->hasData(), 'There are no entities with field data.');
     $this->assertSame(0, $this->storage->countFieldData($field_storage), 'There are 0 entities with field data.');
 
     // Create 12 entities to ensure that the purging works as expected.
@@ -96,16 +96,16 @@ public function testEntityCountAndHasData() {
       $this->assertEquals(24, $result, 'The field table has 24 rows.');
     }
 
-    $this->assertTrue($field_storage->hasdata(), 'There are entities with field data.');
+    $this->assertTrue($field_storage->hasData(), 'There are entities with field data.');
     $this->assertEquals(12, $this->storage->countFieldData($field_storage), 'There are 12 entities with field data.');
 
     // Ensure the methods work on deleted fields.
     $field_storage->delete();
-    $this->assertTrue($field_storage->hasdata(), 'There are entities with deleted field data.');
+    $this->assertTrue($field_storage->hasData(), 'There are entities with deleted field data.');
     $this->assertEquals(12, $this->storage->countFieldData($field_storage), 'There are 12 entities with deleted field data.');
 
     field_purge_batch(6);
-    $this->assertTrue($field_storage->hasdata(), 'There are entities with deleted field data.');
+    $this->assertTrue($field_storage->hasData(), 'There are entities with deleted field data.');
     $this->assertEquals(6, $this->storage->countFieldData($field_storage), 'There are 6 entities with deleted field data.');
 
     $entity_type = 'entity_test_rev';
diff --git a/core/modules/field_ui/tests/src/FunctionalJavascript/ManageFieldsTest.php b/core/modules/field_ui/tests/src/FunctionalJavascript/ManageFieldsTest.php
index 21195579ab1e..7918e0eb2acc 100644
--- a/core/modules/field_ui/tests/src/FunctionalJavascript/ManageFieldsTest.php
+++ b/core/modules/field_ui/tests/src/FunctionalJavascript/ManageFieldsTest.php
@@ -293,7 +293,7 @@ public function testAddField() {
    * Tests the order in which the field types appear in the form.
    */
   public function testFieldTypeOrder() {
-    $this->drupalget('admin/structure/types/manage/article/fields/add-field');
+    $this->drupalGet('admin/structure/types/manage/article/fields/add-field');
     $page = $this->getSession()->getPage();
     $field_type_categories = [
       'selection_list',
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php
index 4caa3c9c1e91..586e545a1888 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php
@@ -696,7 +696,7 @@ public function testSystemMenuRename() {
 
     // Make sure menu shows up with new name in block addition.
     $default_theme = $this->config('system.theme')->get('default');
-    $this->drupalget('admin/structure/block/list/' . $default_theme);
+    $this->drupalGet('admin/structure/block/list/' . $default_theme);
     $this->clickLink('Place block');
     $this->assertSession()->pageTextContains($edit['label']);
   }
diff --git a/core/modules/path/tests/src/Functional/PathLanguageUiTest.php b/core/modules/path/tests/src/Functional/PathLanguageUiTest.php
index 5ca4e94fabc5..104a7f37f845 100644
--- a/core/modules/path/tests/src/Functional/PathLanguageUiTest.php
+++ b/core/modules/path/tests/src/Functional/PathLanguageUiTest.php
@@ -128,7 +128,7 @@ public function testNotSpecifiedNode() {
     // Create another node, with no alias, to ensure non-language specific
     // aliases are loaded correctly.
     $node = $this->drupalCreateNode();
-    $this->drupalget($node->toUrl('edit-form'));
+    $this->drupalGet($node->toUrl('edit-form'));
     $this->submitForm([], 'Save');
     $this->assertSession()->pageTextNotContains('The alias is already in use.');
   }
diff --git a/core/modules/rest/tests/src/Kernel/Views/StyleSerializerKernelTest.php b/core/modules/rest/tests/src/Kernel/Views/StyleSerializerKernelTest.php
index 7baa66ed6632..00dd5891fee4 100644
--- a/core/modules/rest/tests/src/Kernel/Views/StyleSerializerKernelTest.php
+++ b/core/modules/rest/tests/src/Kernel/Views/StyleSerializerKernelTest.php
@@ -34,7 +34,7 @@ protected function setUp($import_test_views = TRUE): void {
   /**
    * @covers ::calculateDependencies
    */
-  public function testCalculateDepenencies() {
+  public function testCalculateDependencies() {
     /** @var \Drupal\views\Entity\View $view */
     $view = View::load('test_serializer_display_entity');
     $display = &$view->getDisplay('rest_export_1');
diff --git a/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php b/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php
index f75f372c3c5b..98567e2a6022 100644
--- a/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php
@@ -152,7 +152,7 @@ public function testAdvancedSelect() {
   /**
    * Tests error handling for invalid tableselect values with checkboxes.
    */
-  public function testMultipleTrueOptionchecker() {
+  public function testMultipleTrueOptionChecker() {
 
     [$header, $options] = _form_test_tableselect_get_data();
 
@@ -175,7 +175,7 @@ public function testMultipleTrueOptionchecker() {
   /**
    * Tests error handling for invalid tableselect values with radio buttons.
    */
-  public function testMultipleFalseOptionchecker() {
+  public function testMultipleFalseOptionChecker() {
 
     [$header, $options] = _form_test_tableselect_get_data();
 
diff --git a/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php b/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php
index 1b296f6a7d10..19acc128a171 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php
@@ -105,13 +105,13 @@ public function testTermsTranslation() {
     $this->drupalLogin($this->drupalCreateUser(['create article content']));
 
     // Test terms are listed.
-    $this->drupalget('node/add/article');
+    $this->drupalGet('node/add/article');
     $this->assertSession()->pageTextContains('one');
     $this->assertSession()->pageTextContains('two');
     $this->assertSession()->pageTextContains('three');
 
     // Test terms translated are listed.
-    $this->drupalget('hu/node/add/article');
+    $this->drupalGet('hu/node/add/article');
     $this->assertSession()->pageTextContains('translatedOne');
     $this->assertSession()->pageTextContains('translatedTwo');
     $this->assertSession()->pageTextContains('translatedThree');
diff --git a/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php b/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
index 2ed8125a3b3f..0d211436a99d 100644
--- a/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
+++ b/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
@@ -43,7 +43,7 @@ protected function setUp($import_test_views = TRUE): void {
    * Tests a field-based view's cache tags when using the "none" cache plugin.
    */
   public function testFieldBasedViewCacheTagsWithCachePluginNone() {
-    $view = Views::getview('entity_test_fields');
+    $view = Views::getView('entity_test_fields');
     $view->getDisplay()->overrideOption('cache', [
       'type' => 'none',
     ]);
@@ -56,7 +56,7 @@ public function testFieldBasedViewCacheTagsWithCachePluginNone() {
    * Tests a field-based view's cache tags when using the "tag" cache plugin.
    */
   public function testFieldBasedViewCacheTagsWithCachePluginTag() {
-    $view = Views::getview('entity_test_fields');
+    $view = Views::getView('entity_test_fields');
     $view->getDisplay()->overrideOption('cache', [
       'type' => 'tag',
     ]);
@@ -69,7 +69,7 @@ public function testFieldBasedViewCacheTagsWithCachePluginTag() {
    * Tests a field-based view's cache tags when using the "time" cache plugin.
    */
   public function testFieldBasedViewCacheTagsWithCachePluginTime() {
-    $view = Views::getview('entity_test_fields');
+    $view = Views::getView('entity_test_fields');
     $view->getDisplay()->overrideOption('cache', [
       'type' => 'time',
       'options' => [
@@ -91,7 +91,7 @@ public function testFieldBasedViewCacheTagsWithCachePluginTime() {
    * @internal
    */
   protected function assertCacheTagsForFieldBasedView(bool $do_assert_views_caches): void {
-    $view = Views::getview('entity_test_fields');
+    $view = Views::getView('entity_test_fields');
 
     // Empty result (no entities yet).
     $base_tags = ['config:views.view.entity_test_fields', 'entity_test_list'];
@@ -190,7 +190,7 @@ protected function assertCacheTagsForFieldBasedView(bool $do_assert_views_caches
    * Tests an entity-based view's cache tags when using the "none" cache plugin.
    */
   public function testEntityBasedViewCacheTagsWithCachePluginNone() {
-    $view = Views::getview('entity_test_row');
+    $view = Views::getView('entity_test_row');
     $view->getDisplay()->overrideOption('cache', [
       'type' => 'none',
     ]);
@@ -203,7 +203,7 @@ public function testEntityBasedViewCacheTagsWithCachePluginNone() {
    * Tests an entity-based view's cache tags when using the "tag" cache plugin.
    */
   public function testEntityBasedViewCacheTagsWithCachePluginTag() {
-    $view = Views::getview('entity_test_row');
+    $view = Views::getView('entity_test_row');
     $view->getDisplay()->overrideOption('cache', [
       'type' => 'tag',
     ]);
@@ -216,7 +216,7 @@ public function testEntityBasedViewCacheTagsWithCachePluginTag() {
    * Tests an entity-based view's cache tags when using the "time" cache plugin.
    */
   public function testEntityBasedViewCacheTagsWithCachePluginTime() {
-    $view = Views::getview('entity_test_row');
+    $view = Views::getView('entity_test_row');
     $view->getDisplay()->overrideOption('cache', [
       'type' => 'time',
       'options' => [
@@ -235,7 +235,7 @@ public function testEntityBasedViewCacheTagsWithCachePluginTime() {
    * @internal
    */
   protected function assertCacheTagsForEntityBasedView(bool $do_assert_views_caches): void {
-    $view = Views::getview('entity_test_row');
+    $view = Views::getView('entity_test_row');
 
     // Empty result (no entities yet).
     $base_tags = $base_render_tags = ['config:views.view.entity_test_row', 'entity_test_list'];
diff --git a/core/modules/views/tests/src/Kernel/ViewsPreprocessTest.php b/core/modules/views/tests/src/Kernel/ViewsPreprocessTest.php
index 35d5b62bc9cc..9ce164616daf 100644
--- a/core/modules/views/tests/src/Kernel/ViewsPreprocessTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewsPreprocessTest.php
@@ -43,7 +43,7 @@ public function testCssClassCleaning() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = \Drupal::service('renderer');
 
-    $view = Views::getview('test_preprocess');
+    $view = Views::getView('test_preprocess');
     $build = $view->buildRenderable();
     $renderer->renderRoot($build);
     $this->assertStringContainsString('class="entity-test--default entity-test__default', (string) $build['#markup']);
diff --git a/core/tests/Drupal/KernelTests/Core/Extension/ModuleExtensionListTest.php b/core/tests/Drupal/KernelTests/Core/Extension/ModuleExtensionListTest.php
index dd5d13e0d445..d0a9799ec229 100644
--- a/core/tests/Drupal/KernelTests/Core/Extension/ModuleExtensionListTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Extension/ModuleExtensionListTest.php
@@ -13,7 +13,7 @@ class ModuleExtensionListTest extends KernelTestBase {
   /**
    * @covers ::getList
    */
-  public function testGetlist() {
+  public function testGetList() {
     \Drupal::configFactory()->getEditable('core.extension')
       ->set('module.testing', 1000)
       ->set('profile', 'testing')
diff --git a/core/tests/Drupal/KernelTests/Core/Extension/ThemeEngineExtensionListTest.php b/core/tests/Drupal/KernelTests/Core/Extension/ThemeEngineExtensionListTest.php
index 1a3ce0365cac..ad6d4e971f13 100644
--- a/core/tests/Drupal/KernelTests/Core/Extension/ThemeEngineExtensionListTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Extension/ThemeEngineExtensionListTest.php
@@ -13,7 +13,7 @@ class ThemeEngineExtensionListTest extends KernelTestBase {
   /**
    * @covers ::getList
    */
-  public function testGetlist() {
+  public function testGetList() {
     // Confirm that all theme engines are available.
     $theme_engines = \Drupal::service('extension.list.theme_engine')->getList();
     $this->assertArrayHasKey('twig', $theme_engines);
diff --git a/core/tests/Drupal/KernelTests/Core/Extension/ThemeExtensionListTest.php b/core/tests/Drupal/KernelTests/Core/Extension/ThemeExtensionListTest.php
index af6c160fe171..6ba9bce0fd70 100644
--- a/core/tests/Drupal/KernelTests/Core/Extension/ThemeExtensionListTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Extension/ThemeExtensionListTest.php
@@ -13,7 +13,7 @@ class ThemeExtensionListTest extends KernelTestBase {
   /**
    * @covers ::getList
    */
-  public function testGetlist() {
+  public function testGetList() {
     \Drupal::configFactory()->getEditable('core.extension')
       ->set('module.testing', 1000)
       ->set('theme.test_theme', 0)
diff --git a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
index 24ca0617f9c6..f18782262bda 100644
--- a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@@ -235,7 +235,7 @@ public function testAndIf() {
     $this->assertDefaultCacheability($access);
 
     // FORBIDDEN && ALLOWED = FORBIDDEN
-    $access = $forbidden->andif($allowed);
+    $access = $forbidden->andIf($allowed);
     $this->assertFalse($access->isAllowed());
     $this->assertTrue($access->isForbidden());
     $this->assertFalse($access->isNeutral());
@@ -243,7 +243,7 @@ public function testAndIf() {
     $this->assertDefaultCacheability($access);
 
     // FORBIDDEN && NEUTRAL = FORBIDDEN
-    $access = $forbidden->andif($neutral);
+    $access = $forbidden->andIf($neutral);
     $this->assertFalse($access->isAllowed());
     $this->assertTrue($access->isForbidden());
     $this->assertFalse($access->isNeutral());
@@ -251,7 +251,7 @@ public function testAndIf() {
     $this->assertDefaultCacheability($access);
 
     // FORBIDDEN && FORBIDDEN = FORBIDDEN
-    $access = $forbidden->andif($forbidden);
+    $access = $forbidden->andIf($forbidden);
     $this->assertFalse($access->isAllowed());
     $this->assertTrue($access->isForbidden());
     $this->assertFalse($access->isNeutral());
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
index 85d20ed284df..6df007e84c20 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
@@ -131,7 +131,7 @@ public function testProcess() {
    *
    * @covers ::process
    */
-  public function testserviceIdProcess() {
+  public function testServiceIdProcess() {
     $container = $this->buildContainer();
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumer')
@@ -188,7 +188,7 @@ public function testProcessPriority() {
    *
    * @covers ::process
    */
-  public function testserviceIdProcessPriority() {
+  public function testServiceIdProcessPriority() {
     $container = $this->buildContainer();
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumer')
diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
index 523a40f2ecc4..01a9fc1394b6 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@@ -283,7 +283,7 @@ public function testIdExceedsMaxLength() {
   /**
    * @covers ::getOriginalClass
    */
-  public function testgetOriginalClassUnchanged() {
+  public function testGetOriginalClassUnchanged() {
     $class = $this->randomMachineName();
     $entity_type = $this->setUpEntityType(['class' => $class]);
     $this->assertEquals($class, $entity_type->getOriginalClass());
@@ -293,7 +293,7 @@ public function testgetOriginalClassUnchanged() {
    * @covers ::setClass
    * @covers ::getOriginalClass
    */
-  public function testgetOriginalClassChanged() {
+  public function testGetOriginalClassChanged() {
     $class = $this->randomMachineName();
     $entity_type = $this->setUpEntityType(['class' => $class]);
     $entity_type->setClass($this->randomMachineName());
diff --git a/core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php b/core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php
index e2b71f16b578..7966ba20314d 100644
--- a/core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php
@@ -144,7 +144,7 @@ public function testGetActiveLink(Request $request, $links, $menu_name, $expecte
     $this->requestStack->push($request);
     if ($links !== FALSE) {
       $this->menuLinkManager->expects($this->exactly(2))
-        ->method('loadLinksbyRoute')
+        ->method('loadLinksByRoute')
         ->with('baby_llama')
         ->willReturn($links);
     }
@@ -168,7 +168,7 @@ public function testGetActiveTrailIds(Request $request, $links, $menu_name, $exp
       // We expect exactly two calls, one for the first call, and one after the
       // cache clearing below.
       $this->menuLinkManager->expects($this->exactly(2))
-        ->method('loadLinksbyRoute')
+        ->method('loadLinksByRoute')
         ->with('baby_llama')
         ->willReturn($links);
       if ($expected_link !== NULL) {
@@ -204,7 +204,7 @@ public function testGetCid() {
     $this->requestStack->push($request);
 
     $this->menuLinkManager->expects($this->any())
-      ->method('loadLinksbyRoute')
+      ->method('loadLinksByRoute')
       ->with('baby_llama')
       ->willReturn($data[1]);
 
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index b2ad8d8c9735..821421e5edbd 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -844,9 +844,9 @@ public function testInvalidLazyBuilderArguments() {
    * @covers ::render
    * @covers ::doRender
    *
-   * @see testNonScalarLazybuilderCallbackContext
+   * @see testNonScalarLazyBuilderCallbackContext
    */
-  public function testScalarLazybuilderCallbackContext() {
+  public function testScalarLazyBuilderCallbackContext() {
     $element = [];
     $element['#lazy_builder'] = [
       '\Drupal\Tests\Core\Render\PlaceholdersTest::callback',
@@ -868,7 +868,7 @@ public function testScalarLazybuilderCallbackContext() {
    * @covers ::render
    * @covers ::doRender
    */
-  public function testNonScalarLazybuilderCallbackContext() {
+  public function testNonScalarLazyBuilderCallbackContext() {
     $element = [];
     $element['#lazy_builder'] = [
       '\Drupal\Tests\Core\Render\PlaceholdersTest::callback',
-- 
GitLab