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