function FilterFormatRepositoryTest::testGetFallbackFormatId
Same name and namespace in other branches
- 11.x core/modules/filter/tests/src/Kernel/FilterFormatRepositoryTest.php \Drupal\Tests\filter\Kernel\FilterFormatRepositoryTest::testGetFallbackFormatId()
@legacy-covers ::getFallbackFormatId
File
-
core/
modules/ filter/ tests/ src/ Kernel/ FilterFormatRepositoryTest.php, line 102
Class
- FilterFormatRepositoryTest
- Tests the Drupal\filter\FilterFormatRepositoryInterface service.
Namespace
Drupal\Tests\filter\KernelCode
public function testGetFallbackFormatId() : void {
$this->config('filter.settings')
->set('fallback_format', 'bar')
->save();
$this->assertSame('bar', $this->repository
->getFallbackFormatId());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.