protected function LinkitFilterEntityTest::setUp in Linkit 8.5
Overrides LinkitKernelTestBase::setUp
File
- tests/
src/ Kernel/ LinkitFilterEntityTest.php, line 41
Class
- LinkitFilterEntityTest
- Tests the Linkit filter.
Namespace
Drupal\Tests\linkit\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('entity_test');
$this
->installEntitySchema('entity_test_mul');
$this
->installEntitySchema('file');
// Add Swedish, Danish and Finnish.
ConfigurableLanguage::createFromLangcode('sv')
->save();
ConfigurableLanguage::createFromLangcode('da')
->save();
ConfigurableLanguage::createFromLangcode('fi')
->save();
/** @var \Drupal\Component\Plugin\PluginManagerInterface $manager */
$manager = $this->container
->get('plugin.manager.filter');
$bag = new FilterPluginCollection($manager, []);
$this->filter = $bag
->get('linkit');
}