You are here

function FileFieldPathsTestCase::setUp in File (Field) Paths 6

Same name and namespace in other branches
  1. 6.2 tests/filefield_paths.test \FileFieldPathsTestCase::setUp()
  2. 7 tests/filefield_paths.test \FileFieldPathsTestCase::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

1 call to FileFieldPathsTestCase::setUp()
FileFieldPathsUploadTestCase::setUp in tests/filefield_paths.test
Implementation of setUp().
1 method overrides FileFieldPathsTestCase::setUp()
FileFieldPathsUploadTestCase::setUp in tests/filefield_paths.test
Implementation of setUp().

File

tests/filefield_paths.test, line 14
This file implements tests for FileField Paths.

Class

FileFieldPathsTestCase
@file This file implements tests for FileField Paths.

Code

function setUp($modules = array(), $permissions = array()) {
  $modules = array_merge($modules, array(
    'filefield_paths',
    'token',
  ));
  call_user_func_array(array(
    $this,
    'parent::setUp',
  ), $modules);

  // Create and login user
  $permissions = array_merge($permissions, array(
    'administer content types',
    'administer nodes',
  ));
  $this->admin_user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->admin_user);
}