public function KeywordFilterTest::testKeywordFilter in Tamper 8
@covers ::tamper @dataProvider providerKeywordFilter
File
- tests/
src/ Unit/ Plugin/ Tamper/ KeywordFilterTest.php, line 26
Class
- KeywordFilterTest
- Tests the keyword filter plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testKeywordFilter($expected, $config) {
$this->plugin = new KeywordFilter($config, 'keyword_filter', [], $this
->getMockSourceDefinition());
$this
->assertEquals($expected, $this->plugin
->tamper('This is atitle'));
}