protected function EntityResolverManagerTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php \Drupal\Tests\Core\Entity\EntityResolverManagerTest::setUp()
@covers ::__construct
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityResolverManagerTest.php, line 58 - Contains \Drupal\Tests\Core\Entity\EntityResolverManagerTest.
Class
- EntityResolverManagerTest
- @coversDefaultClass \Drupal\Core\Entity\EntityResolverManager @group Entity
Namespace
Drupal\Tests\Core\EntityCode
protected function setUp() : void {
$this->entityTypeManager = $this
->createMock('Drupal\\Core\\Entity\\EntityTypeManagerInterface');
$this->container = $this
->createMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
$this->classResolver = $this
->getClassResolverStub();
$this->entityResolverManager = new EntityResolverManager($this->entityTypeManager, $this->classResolver);
}