Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6e57cf73
Commit
6e57cf73
authored
Sep 20, 2009
by
Dries Buytaert
Browse files
- Patch
#11218
by sun: fixed fatal error.
parent
339085eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/field/modules/text/text.test
View file @
6e57cf73
...
...
@@ -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_format
s
_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_
se
t_permissions
(
$rid
,
array
(
$permission
),
TRUE
);
user_role_
gran
t_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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment