You are here

protected function HtmlPurifierFilterTest::setUp in HTML Purifier 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/HtmlPurifierFilterTest.php, line 29

Class

HtmlPurifierFilterTest
Tests htmlpurifier filter.

Namespace

Drupal\Tests\htmlpurifier\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $manager = $this->container
    ->get('plugin.manager.filter');
  $bag = new FilterPluginCollection($manager, []);
  $this->filter = $bag
    ->get('htmlpurifier');
}