Skip to content
Snippets Groups Projects
Unverified Commit a1468fef authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2910775 by Sivaji, Hardik_Patel_12, hchonov, Mile23: Add test case for...

Issue #2910775 by Sivaji, Hardik_Patel_12, hchonov, Mile23: Add test case for EntityType::getHandlerClass returning NULL

(cherry picked from commit b6bf07b8)
parent e9a0e671
Branches
Tags
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
...@@ -465,6 +465,7 @@ public function getHandlerClass($handler_type, $nested = FALSE) { ...@@ -465,6 +465,7 @@ public function getHandlerClass($handler_type, $nested = FALSE) {
$handlers = $this->getHandlerClasses(); $handlers = $this->getHandlerClasses();
return $nested ? $handlers[$handler_type][$nested] : $handlers[$handler_type]; return $nested ? $handlers[$handler_type][$nested] : $handlers[$handler_type];
} }
return NULL;
} }
/** /**
......
...@@ -167,6 +167,8 @@ public function testGetHandler() { ...@@ -167,6 +167,8 @@ public function testGetHandler() {
]); ]);
$this->assertSame($controller, $entity_type->getHandlerClass('storage')); $this->assertSame($controller, $entity_type->getHandlerClass('storage'));
$this->assertSame($controller, $entity_type->getHandlerClass('form', 'default')); $this->assertSame($controller, $entity_type->getHandlerClass('form', 'default'));
$this->assertNull($entity_type->getHandlerClass('foo'));
$this->assertNull($entity_type->getHandlerClass('foo', 'bar'));
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment