public function StripTagsTest::testNoStringTamper in Tamper 8
Test the plugin behaviour without string data.
File
- tests/
src/ Unit/ Plugin/ Tamper/ StripTagsTest.php, line 49
Class
- StripTagsTest
- Tests the strip tags plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testNoStringTamper() {
$this
->expectException(TamperException::class);
$this
->expectExceptionMessage('Input should be a string.');
$this->plugin
->tamper(NULL);
}