From 8172877a62e7df25b0febc4b46dfa148af73f7db Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 29 Nov 2010 06:38:52 +0000 Subject: #947844 by sun: Clean up filter-related tests that load text formats by their human-readable name. --- modules/simpletest/tests/common.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 5fca979d9..793770521 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -680,7 +680,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { $expected = 'body{font-size:254px;}'; // Create a node, using the PHP filter that tests drupal_add_css(). - $php_format_id = db_query_range('SELECT format FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'PHP code'))->fetchField(); + $php_format_id = 'php_code'; $settings = array( 'type' => 'page', 'body' => array( -- cgit v1.2.3