You are here

function FileFieldValidateTestCase::setUp in FileField 6.3

Implementation of setUp().

Overrides FileFieldTestCase::setUp

File

tests/filefield.test, line 348

Class

FileFieldValidateTestCase
Test class to check for various validations.

Code

function setUp() {
  $modules = array_merge(func_get_args(), array(
    'content',
    'filefield',
    'filefield_meta',
    'getid3',
    'mimedetect',
    'token',
    'views',
  ));
  call_user_func_array(array(
    'parent',
    'setUp',
  ), $modules);
  $this->node_type = $this
    ->drupalCreateContentType();
  $this->node_type->url_name = str_replace('_', '-', $this->node_type->name);
  $field_name = 'field_' . strtolower($this
    ->randomName());
  $this->field = $this
    ->createFileField($field_name, $this->node_type->name);
}