You are here

protected function TrimTest::instantiatePlugin in Tamper 8

Instantiates a plugin.

Return value

\Drupal\tamper\TamperInterface A tamper plugin.

Overrides TamperPluginTestBase::instantiatePlugin

File

tests/src/Unit/Plugin/Tamper/TrimTest.php, line 18

Class

TrimTest
Tests the trim plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

protected function instantiatePlugin() {
  $config = [
    Trim::SETTING_CHARACTER => '',
    Trim::SETTING_SIDE => 'trim',
  ];
  return new Trim($config, 'trim', [], $this
    ->getMockSourceDefinition());
}