You are here

public function RequiredTest::testInvertedRequiredWithSingleValue in Tamper 8

Test required with a string.

File

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

Class

RequiredTest
Test the required plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testInvertedRequiredWithSingleValue() {
  $this
    ->expectException(SkipTamperItemException::class);
  $this->invertedPlugin
    ->tamper('Expected');
}