public function FindReplaceTest::testMultipleValues in Tamper 8
Test the plugin with a multiple values.
File
- tests/
src/ Unit/ Plugin/ Tamper/ FindReplaceTest.php, line 101
Class
- FindReplaceTest
- Tests the find and replace plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testMultipleValues() {
$plugin = new FindReplace([], 'find_replace', [], $this
->getMockSourceDefinition());
$this
->expectException(TamperException::class);
$this
->expectExceptionMessage('Input should be a string.');
$plugin
->tamper([
'foo',
'bar',
'baz',
]);
}