You are here

protected function ListPluginTypesTest::setUp in Plugin 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Controller/ListPluginTypesTest.php, line 68

Class

ListPluginTypesTest
@coversDefaultClass \Drupal\plugin\Controller\ListPluginTypes

Namespace

Drupal\Tests\plugin\Unit\Controller

Code

protected function setUp() : void {
  parent::setUp();
  $this->container = $this
    ->prophesize(ContainerInterface::class);
  $this->moduleHandler = $this
    ->createMock(ModuleHandlerInterface::class);
  $this->pluginTypeManager = $this
    ->createMock(PluginTypeManagerInterface::class);
  $this->stringTranslation = new TranslationMock();
  $this->sut = new ListPluginTypes($this->stringTranslation, $this->moduleHandler, $this->pluginTypeManager);
}