You are here

function FilterAdminTestCase::testUrlFilterAdmin in Drupal 7

Tests the URL filter settings form is properly validated.

File

modules/filter/filter.test, line 421
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',
  )));
}