You are here

public function ImplodeTest::testImplodeWithMultipleValues in Tamper 8

Tests imploding with multiple values.

File

tests/src/Unit/Plugin/Tamper/ImplodeTest.php, line 39

Class

ImplodeTest
Tests the implode plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testImplodeWithMultipleValues() {
  $original = [
    'foo',
    'bar',
    'baz',
  ];
  $expected = 'foo,bar,baz';
  $this
    ->assertEquals($expected, $this->plugin
    ->tamper($original));
}