You are here

public function ConfigActionsPluginBaseTest::testParseOptions in Config Actions 8

@covers ::parseOptions

File

tests/src/Unit/ConfigActionsPluginBaseTest.php, line 76

Class

ConfigActionsPluginBaseTest
test the ConfigActionsPluginBase class

Namespace

Drupal\Tests\config_actions\Unit

Code

public function testParseOptions() {
  $options = [
    'id' => 'testid',
    'source' => '@id@',
  ];
  $plugin = new ConfigActionsPluginBase($options, 'test', $this->definition, $this->configActions);
  $new_options = $plugin
    ->parseOptions($options);
  $this
    ->assertEquals('testid', $new_options['source']);
}