protected function PluginSelectorBaseTestBase::setUp in Plugin 8.2
Overrides UnitTestCase::setUp
4 calls to PluginSelectorBaseTestBase::setUp()
- AdvancedPluginSelectorBaseTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ AdvancedPluginSelectorBaseTest.php - PluginSelectorBaseTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ PluginSelectorBaseTest.php - RadiosTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ RadiosTest.php - SelectListTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ SelectListTest.php
4 methods override PluginSelectorBaseTestBase::setUp()
- AdvancedPluginSelectorBaseTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ AdvancedPluginSelectorBaseTest.php - PluginSelectorBaseTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ PluginSelectorBaseTest.php - RadiosTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ RadiosTest.php - SelectListTest::setUp in tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ SelectListTest.php
File
- tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ PluginSelectorBaseTestBase.php, line 70
Class
- PluginSelectorBaseTestBase
- Provides a base for tests for classes that extend \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorBase.
Namespace
Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelectorCode
protected function setUp() : void {
$this->defaultPluginResolver = $this
->createMock(DefaultPluginResolverInterface::class);
$this->pluginId = $this
->randomMachineName();
$this->selectablePluginManager = $this
->createMock(PluginManagerInterface::class);
$this->selectablePluginType = $this
->createMock(PluginTypeInterface::class);
$this->selectablePluginType
->expects($this
->any())
->method('getPluginManager')
->willReturn($this->selectablePluginManager);
$this->selectedPlugin = $this
->createMock(PluginInspectionInterface::class);
}