public function FilterTemplatesTest::setUp in Wysiwyg API template plugin 3.0.x
Same name and namespace in other branches
- 8.2 modules/wysiwyg_template_core/tests/src/Kernel/Plugin/Filter/FilterTemplatesTest.php \Drupal\Tests\wysiwyg_template_core\Kernel\Plugin\Filter\FilterTemplatesTest::setUp()
Overrides KernelTestBase::setUp
File
- modules/
wysiwyg_template_core/ tests/ src/ Kernel/ Plugin/ Filter/ FilterTemplatesTest.php, line 32
Class
- FilterTemplatesTest
- Tests the Wysiwyg cleanup filter.
Namespace
Drupal\Tests\wysiwyg_template_core\Kernel\Plugin\FilterCode
public function setUp() {
parent::setUp();
/** @var \Drupal\filter\FilterPluginManager $manager */
$manager = $this->container
->get('plugin.manager.filter');
$bag = new FilterPluginCollection($manager, []);
$this->filter = $bag
->getAll()['filter_wysiwyg_cleanup'];
}