You are here

public function FilterTemplatesTest::setUp in Wysiwyg API template plugin 8.2

Same name and namespace in other branches
  1. 3.0.x 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\Filter

Code

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'];
}