function FilterAdminTestCase::testUrlFilterAdmin

7.x filter.test FilterAdminTestCase::testUrlFilterAdmin()

Tests the URL filter settings form is properly validated.

File

drupal-7.x/modules/filter/filter.test, line 412
Tests for filter.module.

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')));
}