protected function ContentModerationRouteSubscriberTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php \Drupal\Tests\content_moderation\Unit\ContentModerationRouteSubscriberTest::setUp()
- 9 core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php \Drupal\Tests\content_moderation\Unit\ContentModerationRouteSubscriberTest::setUp()
File
- core/
modules/ content_moderation/ tests/ src/ Unit/ ContentModerationRouteSubscriberTest.php, line 31
Class
- ContentModerationRouteSubscriberTest
- @coversDefaultClass \Drupal\content_moderation\Routing\ContentModerationRouteSubscriber
Namespace
Drupal\Tests\content_moderation\UnitCode
protected function setUp() : void {
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager */
$entity_type_manager = $this
->createMock(EntityTypeManagerInterface::class);
$this->routeSubscriber = new ContentModerationRouteSubscriber($entity_type_manager);
$this
->setupEntityTypes();
}