public function RadiosTest::testBuildSelectorFormWithoutAvailablePlugins in Plugin 8.2
@covers ::buildSelectorForm
File
- tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ RadiosTest.php, line 59
Class
- RadiosTest
- @coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\Radios
Namespace
Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelectorCode
public function testBuildSelectorFormWithoutAvailablePlugins() {
$form = [];
$form_state = $this
->createMock(FormStateInterface::class);
$this->selectablePluginManager
->expects($this
->any())
->method('getDefinitions')
->willReturn([]);
$build = $this->sut
->buildSelectorForm($form, $form_state);
$this
->assertArrayHasKey('clear', $build);
}