You are here

protected function DefaultRoleEventTest::setUp in Organic groups 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/DefaultRoleEventTest.php, line 39

Class

DefaultRoleEventTest
Tests default role events.

Namespace

Drupal\Tests\og\Unit

Code

protected function setUp() : void {
  parent::setUp();
  $entity_type_manager = $this
    ->prophesize(EntityTypeManagerInterface::class);
  $this->ogRoleStorage = $this
    ->prophesize(EntityStorageInterface::class);
  $entity_type_manager
    ->getStorage('og_role')
    ->willReturn($this->ogRoleStorage
    ->reveal());
  $this->defaultRoleEvent = new DefaultRoleEvent($entity_type_manager
    ->reveal());
}