t('Filter administration functionality'), 'description' => t('Thoroughly test the administrative interface of the filter module.'), 'group' => t('Filter'), ); } /** * Test filter administration functionality. */ function testFilter() { $first_filter = 2; // URL filter. $second_filter = 1; // Line filter. // Create users. $admin_user = $this->drupalCreateUser(array('administer filters')); $web_user = $this->drupalCreateUser(array('create page content')); $this->drupalLogin($admin_user); list($filtered, $full) = $this->checkFilterFormats(); // Change default filter. $edit = array(); $edit['default'] = $full; $this->drupalPost('admin/settings/filters', $edit, t('Save changes')); $this->assertText(t('Default format updated.'), t('Default filter updated successfully.')); $this->assertNoRaw('admin/settings/filters/delete/'. $full, t('Delete link not found.')); // Add an additional tag. $edit = array(); $edit['allowed_html_1'] = '