public function ConfigActionsPluginBaseTest::testGetOption in Config Actions 8
@covers ::setOptions @covers ::getOption
File
- tests/
src/ Unit/ ConfigActionsPluginBaseTest.php, line 48
Class
- ConfigActionsPluginBaseTest
- test the ConfigActionsPluginBase class
Namespace
Drupal\Tests\config_actions\UnitCode
public function testGetOption() {
$options = [
'source' => 'my source',
];
$plugin = new ConfigActionsPluginBase($options, 'test', $this->definition, $this->configActions);
$plugin
->setOptions($options);
$this
->assertEquals('my source', $plugin
->getOption('source'));
}