You are here

protected function RadiosTest::setUp in Plugin 8.2

Overrides PluginSelectorBaseTestBase::setUp

File

tests/src/Unit/Plugin/Plugin/PluginSelector/RadiosTest.php, line 43

Class

RadiosTest
@coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\Radios

Namespace

Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelector

Code

protected function setUp() : void {
  parent::setUp();
  $this->responsePolicy = $this
    ->getMockBuilder(KillSwitch::class)
    ->disableOriginalConstructor()
    ->getMock();
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->sut = new Radios([], $this->pluginId, $this->pluginDefinition, $this->defaultPluginResolver, $this->stringTranslation, $this->responsePolicy);
  $this->sut
    ->setSelectablePluginType($this->selectablePluginType);
}