You are here

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\Tamper

Code

public function testExplodeWithMultipleValues() {
  $this
    ->expectException(TamperException::class);
  $this
    ->expectExceptionMessage('Input should be a string.');
  $original = [
    'foo,bar',
    'baz,zip',
  ];
  $this
    ->getPluginDefaultConfig()
    ->tamper($original);
}