protected function RouteGroupResolverTest::getEntityTypes in Organic groups 8
Returns a list of test entity types.
This mimicks the data returned by EntityTypeManager::getDefinitions().
Return value
\Drupal\Core\Entity\EntityTypeInterface[] A list of mocked entity types.
See also
\Drupal\Core\Entity\EntityTypeManagerInterface::getDefinitions()
File
- tests/
src/ Unit/ Plugin/ OgGroupResolver/ RouteGroupResolverTest.php, line 60
Class
- RouteGroupResolverTest
- Tests the RouteGroupResolver plugin.
Namespace
Drupal\Tests\og\Unit\Plugin\OgGroupResolverCode
protected function getEntityTypes() {
return [
'node' => $this
->prophesize(ContentEntityInterface::class),
];
}