function FilterFormatRepositoryTest::setUp
Same name and namespace in other branches
- 11.x core/modules/filter/tests/src/Kernel/FilterFormatRepositoryTest.php \Drupal\Tests\filter\Kernel\FilterFormatRepositoryTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ filter/ tests/ src/ Kernel/ FilterFormatRepositoryTest.php, line 44
Class
- FilterFormatRepositoryTest
- Tests the Drupal\filter\FilterFormatRepositoryInterface service.
Namespace
Drupal\Tests\filter\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('user');
$this->installConfig([
'filter',
]);
FilterFormat::create([
'name' => 'Foo',
'format' => 'foo',
'weight' => 20,
])->save();
FilterFormat::create([
'name' => 'Bar',
'format' => 'bar',
'weight' => -10,
])->save();
$this->repository = $this->container
->get(FilterFormatRepositoryInterface::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.