summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/imagecache_create_url.test10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/imagecache_create_url.test b/tests/imagecache_create_url.test
index adb9450..d8be13e 100644
--- a/tests/imagecache_create_url.test
+++ b/tests/imagecache_create_url.test
@@ -31,9 +31,9 @@ class ImageCacheUrlTests extends DrupalWebTestCase {
* SimpleTest core method: code run before each and every test method.
*/
function setUp() {
+ // Make sure that the ImageCache and PHP Filter modules are enabled.
// Always call the setUp() function from the parent class.
- // Make sure that the ImageCache module is enabled.
- parent::setUp('imagecache');
+ parent::setUp('imagecache', 'php');
// Create admin user
$permissions = array(
@@ -47,7 +47,11 @@ class ImageCacheUrlTests extends DrupalWebTestCase {
// Add an input format with PHP evaluator.
$edit = array(
'name' => $this->randomName(10, 'inputformat_'),
- 'filters[filter/1]' => TRUE,
+ 'filters[filter/0]' => FALSE,
+ 'filters[filter/1]' => FALSE,
+ 'filters[filter/2]' => FALSE,
+ 'filters[filter/3]' => FALSE,
+ 'filters[php/0]' => TRUE,
'roles[2]' => TRUE,
);
$this->drupalPost('admin/settings/filters/add', $edit, t('Save configuration'));