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