function FilterFormatUpdateFilterSortingTest::testFilterPostUpdateSortFilters
Same name in other branches
- 10 core/modules/filter/tests/src/Functional/FilterFormatUpdateFilterSortingTest.php \Drupal\Tests\filter\Functional\FilterFormatUpdateFilterSortingTest::testFilterPostUpdateSortFilters()
Tests filter_post_update_sort_filters().
File
-
core/
modules/ filter/ tests/ src/ Functional/ FilterFormatUpdateFilterSortingTest.php, line 31
Class
- FilterFormatUpdateFilterSortingTest
- Tests the upgrade path for filter formats.
Namespace
Drupal\Tests\filter\FunctionalCode
public function testFilterPostUpdateSortFilters() {
$format_config = $this->config('filter.format.plain_text');
$this->assertSame([
'filter_html_escape',
'filter_url',
'filter_autop',
], array_keys($format_config->get('filters')));
$this->runUpdates();
$format_config = $this->config('filter.format.plain_text');
$this->assertSame([
'filter_autop',
'filter_html_escape',
'filter_url',
], array_keys($format_config->get('filters')));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.