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