- Patch #11218 by sun: fixed fatal error.

merge-requests/26/head
Dries Buytaert 2009-09-20 09:37:09 +00:00
parent 339085eb13
commit 6e57cf73d6
1 changed files with 2 additions and 7 deletions

View File

@ -187,12 +187,12 @@ class TextFieldTestCase extends DrupalWebTestCase {
$this->drupalLogin($this->admin_user);
$edit = array('name' => $this->randomName());
$this->drupalPost('admin/config/content/formats/add', $edit, t('Save configuration'));
filter_format_reset_cache();
filter_formats_reset();
$this->checkPermissions(array(), TRUE);
$format_id = db_query("SELECT format FROM {filter_format} WHERE name = :name", array(':name' => $edit['name']))->fetchField();
$permission = filter_permission_name(filter_format_load($format_id));
$rid = max(array_keys($this->web_user->roles));
user_role_set_permissions($rid, array($permission), TRUE);
user_role_grant_permissions($rid, array($permission), TRUE);
$this->drupalLogin($this->web_user);
// Display edition form.
@ -214,11 +214,6 @@ class TextFieldTestCase extends DrupalWebTestCase {
$this->content = drupal_render($entity->content);
$this->assertRaw($value, t('Value is displayed unfiltered'));
}
// Test formatters.
/**
*
*/
}
class TextSummaryTestCase extends DrupalWebTestCase {