You are here

function FilterAdminTest::testUrlFilterAdmin in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/filter/src/Tests/FilterAdminTest.php \Drupal\filter\Tests\FilterAdminTest::testUrlFilterAdmin()

Tests the URL filter settings form is properly validated.

File

core/modules/filter/src/Tests/FilterAdminTest.php, line 360
Contains \Drupal\filter\Tests\FilterAdminTest.

Class

FilterAdminTest
Thoroughly test the administrative interface of the filter module.

Namespace

Drupal\filter\Tests

Code

function testUrlFilterAdmin() {

  // The form does not save with an invalid filter URL length.
  $edit = array(
    'filters[filter_url][settings][filter_url_length]' => $this
      ->randomMachineName(4),
  );
  $this
    ->drupalPostForm('admin/config/content/formats/manage/basic_html', $edit, t('Save configuration'));
  $this
    ->assertNoRaw(t('The text format %format has been updated.', array(
    '%format' => 'Basic HTML',
  )));
}