You are here

public function RequiredTest::testInvertedRequiredWithMultipleValues in Tamper 8

Test required with an array.

File

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

Class

RequiredTest
Test the required plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testInvertedRequiredWithMultipleValues() {
  $this
    ->expectException(SkipTamperItemException::class);
  $expected = [
    'foo' => 'bar',
    'zip' => '',
    'baz' => FALSE,
  ];
  $this->invertedPlugin
    ->tamper($expected);
}