diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-20 07:32:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-20 07:32:19 +0000 |
commit | 7cf7f998781c24f0f27218a9ffdcde290e7ec6ec (patch) | |
tree | 4e5b5b95f2dc6d8ddf7a7a3d7a173bfb3428717f /modules/simpletest/tests/common.test | |
parent | 3a2eff7145176693eb5ae3cd04b77ccebfa717b7 (diff) | |
download | brdo-7cf7f998781c24f0f27218a9ffdcde290e7ec6ec.tar.gz brdo-7cf7f998781c24f0f27218a9ffdcde290e7ec6ec.tar.bz2 |
- Patch #11218 by David_Rothstein, sun, quicksketch, duncf, awood456, dropcube, mgifford | pwolanin, dww, RobRoy, Crell, webchick, beginner, ray007, bjaspan, chx, Gábor Hojtsy, Steven, Dries, lutegrass, sym, guardian, matt2000, geerlingguy, SeanBannister, matt westgate, com2, praseodym: allow default text formats per role, and integrate text format permissions.
Diffstat (limited to 'modules/simpletest/tests/common.test')
-rw-r--r-- | modules/simpletest/tests/common.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index da49b8f56..2ad58a10a 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -374,7 +374,17 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { // Create a node, using the PHP filter that tests drupal_add_css(). $settings = array( 'type' => 'page', - 'body' => array(FIELD_LANGUAGE_NONE => array(array('value' => t('This tests the inline CSS!') . "<?php drupal_add_css('$css', 'inline'); ?>", 'format' => 3))), // PHP filter. + 'body' => array( + FIELD_LANGUAGE_NONE => array( + array( + 'value' => t('This tests the inline CSS!') . "<?php drupal_add_css('$css', 'inline'); ?>", + // The "PHP code" format is always the most recent one added, since + // the PHP module was enabled in the setUp() method of the current + // test. + 'format' => db_query("SELECT MAX(format) FROM {filter_format}")->fetchField(), + ), + ), + ), 'promote' => 1, ); $node = $this->drupalCreateNode($settings); |