public function PluginSelectorBaseTest::testGetPreviouslySelectedPlugins in Plugin 8.2
@covers ::setPreviouslySelectedPlugins @covers ::getPreviouslySelectedPlugins
File
- tests/
src/ Unit/ Plugin/ Plugin/ PluginSelector/ PluginSelectorBaseTest.php, line 115
Class
- PluginSelectorBaseTest
- @coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorBase
Namespace
Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelectorCode
public function testGetPreviouslySelectedPlugins() {
$plugin = $this
->createMock(PluginInspectionInterface::class);
$this->sut
->setPreviouslySelectedPlugins([
$plugin,
]);
$this
->assertSame([
$plugin,
], $this->sut
->getPreviouslySelectedPlugins());
}