You are here

public function HtmlEntityEncodeTest::testHtmlEntityEncodeWithMultipleValues in Tamper 8

Test explode.

File

tests/src/Unit/Plugin/Tamper/HtmlEntityEncodeTest.php, line 33

Class

HtmlEntityEncodeTest
Tests the html entity encode plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

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