You are here

protected function GroupTypeManagerTest::setUp in Organic groups 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/GroupTypeManagerTest.php, line 129

Class

GroupTypeManagerTest
Tests the group manager.

Namespace

Drupal\Tests\og\Unit

Code

protected function setUp() : void {
  $this->config = $this
    ->prophesize(Config::class);
  $this->configFactory = $this
    ->prophesize(ConfigFactoryInterface::class);
  $this->entityTypeBundleInfo = $this
    ->prophesize(EntityTypeBundleInfoInterface::class);
  $this->entityTypeManager = $this
    ->prophesize(EntityTypeManagerInterface::class);
  $this->entityStorage = $this
    ->prophesize(EntityStorageInterface::class);
  $this->eventDispatcher = $this
    ->prophesize(EventDispatcherInterface::class);
  $this->ogRole = $this
    ->prophesize(OgRole::class);
  $this->ogRoleManager = $this
    ->prophesize(OgRoleManagerInterface::class);
  $this->permissionEvent = $this
    ->prophesize(PermissionEventInterface::class);
  $this->permissionManager = $this
    ->prophesize(PermissionManagerInterface::class);
  $this->cache = $this
    ->prophesize(CacheBackendInterface::class);
  $this->routeBuilder = $this
    ->prophesize(RouteBuilderInterface::class);
  $this->groupAudienceHelper = $this
    ->prophesize(OgGroupAudienceHelperInterface::class);
}