You are here

protected function RequiredTest::getInvertedPlugin in Tamper 8

Get a plugin configured to require empty items.

Return value

\Drupal\tamper\Plugin\Tamper\Required Plugin instance.

1 call to RequiredTest::getInvertedPlugin()
RequiredTest::setUp in tests/src/Unit/Plugin/Tamper/RequiredTest.php

File

tests/src/Unit/Plugin/Tamper/RequiredTest.php, line 161

Class

RequiredTest
Test the required plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

protected function getInvertedPlugin() {
  $config = [
    Required::SETTING_INVERT => TRUE,
  ];
  $plugin = new Required($config, 'required', [], $this
    ->getMockSourceDefinition());
  return $plugin;
}