From f3fd9e98570fff1285c083592bf6f15eb75fd591 Mon Sep 17 00:00:00 2001 From: Matt Glaman <27012-mglaman@users.noreply.drupalcode.org> Date: Thu, 2 May 2024 17:11:06 +0000 Subject: [PATCH] Issue #3444940 by mglaman: Make cspell job pass --- src/Unstable/Entity/EntityCreationTrait.php | 2 +- tests/src/Functional/JsonapiResourceTest.php | 2 +- tests/src/Kernel/Routing/ResourceEnhancerTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Unstable/Entity/EntityCreationTrait.php b/src/Unstable/Entity/EntityCreationTrait.php index cd92e53..068b862 100644 --- a/src/Unstable/Entity/EntityCreationTrait.php +++ b/src/Unstable/Entity/EntityCreationTrait.php @@ -52,7 +52,7 @@ trait EntityCreationTrait { } $entity = $this->resourceObjectToEntityMapper->createEntityFromResourceObject($data->getIterator()->current()); - // Allow the class using this trait to modfiy the created entity before it + // Allow the class using this trait to modify the created entity before it // is saved. $this->modifyCreatedEntity($entity, $request); diff --git a/tests/src/Functional/JsonapiResourceTest.php b/tests/src/Functional/JsonapiResourceTest.php index 72ad14b..aa9c712 100644 --- a/tests/src/Functional/JsonapiResourceTest.php +++ b/tests/src/Functional/JsonapiResourceTest.php @@ -300,7 +300,7 @@ class JsonapiResourceTest extends BrowserTestBase { 'attributes' => [ 'entity_type' => 'node', 'field_name' => 'comment', - 'subject' => 'Dramallama', + 'subject' => 'Drama llama', 'status' => 1, 'comment_body' => [ 'value' => 'Llamas are awesome.', diff --git a/tests/src/Kernel/Routing/ResourceEnhancerTest.php b/tests/src/Kernel/Routing/ResourceEnhancerTest.php index 0bf5a9b..5b7a640 100644 --- a/tests/src/Kernel/Routing/ResourceEnhancerTest.php +++ b/tests/src/Kernel/Routing/ResourceEnhancerTest.php @@ -46,7 +46,7 @@ final class ResourceEnhancerTest extends KernelTestBase { // Ensure that the enhancer ignores routes that already have a controller // defined. $route_defaults = [ - '_controller' => '\\Drupal\\mymodule\\Controller\\Doesnt::exist', + '_controller' => '\\Drupal\\mymodule\\Controller\\DoesNot::exist', ]; $enhanced_defaults = $resource_enhancer->enhance($route_defaults, Request::createFromGlobals()); $this->assertSame($enhanced_defaults['_controller'], $route_defaults['_controller']); -- GitLab