protected function AdvancedPluginSelectorBaseTest::setUp in Plugin 8.2
Overrides PluginSelectorBaseTestBase::setUp
File
- tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ AdvancedPluginSelectorBaseTest.php, line 41
Class
- AdvancedPluginSelectorBaseTest
- @coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\AdvancedPluginSelectorBase
Namespace
Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelectorCode
protected function setUp() : void {
parent::setUp();
$this->stringTranslation = $this
->getStringTranslationStub();
$this->sut = $this
->getMockBuilder(AdvancedPluginSelectorBase::class)
->setConstructorArgs(array(
[],
$this->pluginId,
$this->pluginDefinition,
$this->defaultPluginResolver,
$this->stringTranslation,
))
->getMockForAbstractClass();
$this->sut
->setSelectablePluginType($this->selectablePluginType);
}