public function StripTagsTest::testNoAllowedTags in Tamper 8
Test the plugin with no tags allowed.
File
- tests/
src/ Unit/ Plugin/ Tamper/ StripTagsTest.php, line 26
Class
- StripTagsTest
- Tests the strip tags plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testNoAllowedTags() {
$config = [
StripTags::SETTING_ALLOWED_TAGS => NULL,
];
$this->plugin
->setConfiguration($config);
$this
->assertEquals('sdfsdfsdfsdfsdfsdfsdfsdf', $this->plugin
->tamper('sdfsdfsdfsdf<b>sdfsdf</b>sdfsdf'));
$this
->assertEquals('sdfsdfsdfsdfsdfsdfsdfsdf', $this->plugin
->tamper('sdfsdfsdfsdf<b>sdfsdfsdfsdf'));
}