public function UniqueTest::testUniqueWithSingleValue in Tamper 8
Tests unique with a single value.
File
- tests/
src/ Unit/ Plugin/ Tamper/ UniqueTest.php, line 26
Class
- UniqueTest
- Test the unique plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testUniqueWithSingleValue() {
$this
->expectException(TamperException::class);
$this
->expectExceptionMessage('Input should be an array.');
$this->plugin
->tamper('foo');
}