function EntityFormDisplayAccessControlHandlerTest::getEntityTypeManager
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php \Drupal\Tests\Core\Entity\Access\EntityFormDisplayAccessControlHandlerTest::getEntityTypeManager()
- 10 core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php \Drupal\Tests\Core\Entity\Access\EntityFormDisplayAccessControlHandlerTest::getEntityTypeManager()
- 11.x core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php \Drupal\Tests\Core\Entity\Access\EntityFormDisplayAccessControlHandlerTest::getEntityTypeManager()
Returns a mock Entity Type Manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The mocked entity type manager.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Access/ EntityFormDisplayAccessControlHandlerTest.php, line 77
Class
- EntityFormDisplayAccessControlHandlerTest
- @coversDefaultClass \Drupal\Core\Entity\Entity\Access\EntityFormDisplayAccessControlHandler @group Entity
Namespace
Drupal\Tests\Core\Entity\AccessCode
protected function getEntityTypeManager() {
$entity_type_manager = $this->prophesize(EntityTypeManagerInterface::class);
return $entity_type_manager->reveal();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.