You are here

function ImageFieldValidateTestCase::setUp in ImageField 6.3

Implementation of setUp().

Overrides FileFieldValidateTestCase::setUp

File

tests/imagefield.test, line 144

Class

ImageFieldValidateTestCase
Test class to check for various validations.

Code

function setUp() {

  // Views is included here just so that it doesn't whine when CCK tries to
  // clear the caches.
  $modules = array_merge(func_get_args(), array(
    'content',
    'filefield',
    'imagefield',
    'token',
    'views',
  ));
  call_user_func_array(array(
    $this,
    'parent::setUp',
  ), $modules);

  // Then we'll convert it to an ImageField.
  $widget_options = array(
    'type' => 'imagefield_widget',
    'module' => 'imagefield',
    'custom_alt' => '1',
    'custom_title' => '1',
    'max_resolution' => '',
    'min_resolution' => '',
  );
  $this->field = $this
    ->updateFileField($this->field['field_name'], $this->node_type->name, array(), $widget_options);
}