You are here

function FileFieldTestCase::setUp in FileField 6.3

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

1 method overrides FileFieldTestCase::setUp()
FileFieldValidateTestCase::setUp in tests/filefield.test
Implementation of setUp().

File

tests/filefield.test, line 9

Class

FileFieldTestCase

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',
    'filefield_meta',
    'getid3',
    'mimedetect',
    'token',
    'views',
  ));
  call_user_func_array(array(
    'parent',
    'setUp',
  ), $modules);

  // Create and login user
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'access administration pages',
    'administer site configuration',
    'administer content types',
    'administer nodes',
    'administer files',
  ));
  $this
    ->drupalLogin($this->admin_user);
}