public function ExplodeTest::testExplodeWithMultipleValues in Tamper 8
Test explode.
File
- tests/
src/ Unit/ Plugin/ Tamper/ ExplodeTest.php, line 35
Class
- ExplodeTest
- Tests the explode plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testExplodeWithMultipleValues() {
$this
->expectException(TamperException::class);
$this
->expectExceptionMessage('Input should be a string.');
$original = [
'foo,bar',
'baz,zip',
];
$this
->getPluginDefaultConfig()
->tamper($original);
}