/**
* Tests CRUD operations for text formats and filters.
*/
public function testTextFormatCrud() { // Add a text format with minimum data only.
$format = FilterFormat::
create([ 'format' => 'empty_format',
'name' => 'Empty format',
]);
$format->
save();
$this->
verifyTextFormat($format);
// Add another text format specifying all possible properties.
$format = FilterFormat::
create([ 'format' => 'custom_format',
'name' => 'Custom format',
]);
$format->
setFilterConfig('filter_url',
[ 'status' => 1,
'settings' =>
[ 'filter_url_length' => 30,
],
]);