public function AdvancedPluginSelectorBaseTest::testGetPlugin in Plugin 8.2
@covers ::setSelectedPlugin @covers ::getSelectedPlugin
File
- tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ AdvancedPluginSelectorBaseTest.php, line 609
Class
- AdvancedPluginSelectorBaseTest
- @coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\AdvancedPluginSelectorBase
Namespace
Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelectorCode
public function testGetPlugin() {
$plugin = $this
->createMock(PluginInspectionInterface::class);
$this
->assertSame($this->sut, $this->sut
->setSelectedPlugin($plugin));
$this
->assertSame($plugin, $this->sut
->getSelectedPlugin());
}