You are here

protected function FindReplaceTest::instantiatePlugin in Tamper 8

Instantiates a plugin.

Return value

\Drupal\tamper\TamperInterface A tamper plugin.

Overrides TamperPluginTestBase::instantiatePlugin

File

tests/src/Unit/Plugin/Tamper/FindReplaceTest.php, line 19

Class

FindReplaceTest
Tests the find and replace plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

protected function instantiatePlugin() {
  $config = [
    FindReplace::SETTING_FIND => '',
    FindReplace::SETTING_REPLACE => '',
    FindReplace::SETTING_CASE_SENSITIVE => FALSE,
    FindReplace::SETTING_WORD_BOUNDARIES => FALSE,
    FindReplace::SETTING_WHOLE => FALSE,
  ];
  return new FindReplace($config, 'find_replace', [], $this
    ->getMockSourceDefinition());
}