Skip to content
Snippets Groups Projects
Commit f3fd9e98 authored by Matt Glaman's avatar Matt Glaman
Browse files

Issue #3444940 by mglaman: Make cspell job pass

parent e6ba9a4c
No related branches found
No related tags found
1 merge request!12Resolve cspell errors
Pipeline #162746 passed with warnings
...@@ -52,7 +52,7 @@ trait EntityCreationTrait { ...@@ -52,7 +52,7 @@ trait EntityCreationTrait {
} }
$entity = $this->resourceObjectToEntityMapper->createEntityFromResourceObject($data->getIterator()->current()); $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. // is saved.
$this->modifyCreatedEntity($entity, $request); $this->modifyCreatedEntity($entity, $request);
......
...@@ -300,7 +300,7 @@ class JsonapiResourceTest extends BrowserTestBase { ...@@ -300,7 +300,7 @@ class JsonapiResourceTest extends BrowserTestBase {
'attributes' => [ 'attributes' => [
'entity_type' => 'node', 'entity_type' => 'node',
'field_name' => 'comment', 'field_name' => 'comment',
'subject' => 'Dramallama', 'subject' => 'Drama llama',
'status' => 1, 'status' => 1,
'comment_body' => [ 'comment_body' => [
'value' => 'Llamas are awesome.', 'value' => 'Llamas are awesome.',
......
...@@ -46,7 +46,7 @@ final class ResourceEnhancerTest extends KernelTestBase { ...@@ -46,7 +46,7 @@ final class ResourceEnhancerTest extends KernelTestBase {
// Ensure that the enhancer ignores routes that already have a controller // Ensure that the enhancer ignores routes that already have a controller
// defined. // defined.
$route_defaults = [ $route_defaults = [
'_controller' => '\\Drupal\\mymodule\\Controller\\Doesnt::exist', '_controller' => '\\Drupal\\mymodule\\Controller\\DoesNot::exist',
]; ];
$enhanced_defaults = $resource_enhancer->enhance($route_defaults, Request::createFromGlobals()); $enhanced_defaults = $resource_enhancer->enhance($route_defaults, Request::createFromGlobals());
$this->assertSame($enhanced_defaults['_controller'], $route_defaults['_controller']); $this->assertSame($enhanced_defaults['_controller'], $route_defaults['_controller']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment