You are here

protected function OgLocalTaskTest::setUp in Organic groups 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/OgLocalTaskTest.php, line 48

Class

OgLocalTaskTest
Tests OG local task definition.

Namespace

Drupal\Tests\og\Unit

Code

protected function setUp() : void {
  $this->groupTypeManager = $this
    ->prophesize(GroupTypeManagerInterface::class);
  $this->routeProvider = $this
    ->prophesize(RouteProvider::class);
  $this->route = $this
    ->prophesize(Route::class);
  $container = new ContainerBuilder();
  $container
    ->set('string_translation', $this
    ->getStringTranslationStub());
  \Drupal::setContainer($container);
}