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

Merge branch '3444940-make-cspell-job' into '8.x-1.x'

Resolve cspell errors

See merge request !12
parents e6ba9a4c ed709449
No related branches found
No related tags found
No related merge requests found
Pipeline #162728 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);
......
...@@ -18,6 +18,8 @@ use Drupal\user\Entity\User; ...@@ -18,6 +18,8 @@ use Drupal\user\Entity\User;
use Drupal\user\RoleInterface; use Drupal\user\RoleInterface;
use GuzzleHttp\RequestOptions; use GuzzleHttp\RequestOptions;
// cspell:ignore Dramallama
/** /**
* Tests JSON:API Resource processors. * Tests JSON:API Resource processors.
* *
......
...@@ -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