You are here

protected function RewriteTest::instantiatePlugin in Tamper 8

Instantiates a plugin.

Return value

\Drupal\tamper\TamperInterface A tamper plugin.

Overrides TamperPluginTestBase::instantiatePlugin

File

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

Class

RewriteTest
Tests the rewrite plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

protected function instantiatePlugin() {
  $config = [
    Rewrite::SETTING_TEXT => '[title] - [body]',
  ];
  return new Rewrite($config, 'rewrite', [], $this
    ->getMockSourceDefinition());
}