protected function ListPluginsTest::setUp in Plugin 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Controller/ ListPluginsTest.php, line 72
Class
- ListPluginsTest
- @coversDefaultClass \Drupal\plugin\Controller\ListPlugins
Namespace
Drupal\Tests\plugin\Unit\ControllerCode
protected function setUp() : void {
parent::setUp();
$this->container = $this
->prophesize(ContainerInterface::class);
$this->classResolver = $this
->createMock(ClassResolverInterface::class);
$this->moduleHandler = $this
->createMock(ModuleHandlerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->sut = new ListPlugins($this->stringTranslation, $this->moduleHandler, $this->classResolver);
}