You are here

protected function NbspCleanerFilterTest::setUp in CKEditor Non-breaking space Plugin ( ) 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/NbspCleanerFilterTest.php \Drupal\Tests\nbsp\Kernel\NbspCleanerFilterTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/NbspCleanerFilterTest.php, line 33

Class

NbspCleanerFilterTest
@coversDefaultClass \Drupal\nbsp\Plugin\Filter\NbspCleanerFilter

Namespace

Drupal\Tests\nbsp\Kernel

Code

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