function FilterAdminTestCase::testUrlFilterAdmin
Tests the URL filter settings form is properly validated.
File
-
modules/
filter/ filter.test, line 424
Class
- FilterAdminTestCase
- Tests the administrative functionality of the Filter module.
Code
function testUrlFilterAdmin() {
// The form does not save with an invalid filter URL length.
$edit = array(
'filters[filter_url][settings][filter_url_length]' => $this->randomName(4),
);
$this->drupalPost('admin/config/content/formats/filtered_html', $edit, t('Save configuration'));
$this->assertNoRaw(t('The text format %format has been updated.', array(
'%format' => 'Filtered HTML',
)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.