protected function ContentModerationRouteSubscriberTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php \Drupal\Tests\content_moderation\Unit\ContentModerationRouteSubscriberTest::setUp()
Overrides UnitTestCase::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() {
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager */
$entity_type_manager = $this
->createMock(EntityTypeManagerInterface::class);
$this->routeSubscriber = new ContentModerationRouteSubscriber($entity_type_manager);
$this
->setupEntityTypes();
}