You are here

public function RequiredTest::testRequiredWithMultipleValues in Tamper 8

Test required with an array.

File

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

Class

RequiredTest
Test the required plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testRequiredWithMultipleValues() {
  $expected = [
    'foo' => 'bar',
    'zip' => '',
    'baz' => FALSE,
  ];
  $this
    ->assertEquals($expected, $this->plugin
    ->tamper($expected));
}