You are here

function ImageModuleTest::setUp in SimpleTest 5

File

tests/image_module.test, line 12

Class

ImageModuleTest

Code

function setUp() {
  parent::setUp();
  $dir = file_directory_path() . '/' . variable_get('image_default_path', 'images');
  $temp_dir = $dir . '/temp';
  $dir_created = file_check_directory($dir, TRUE);
  $temp_dir_created = file_check_directory($temp_dir, TRUE);
  if (!$dir_created || !$temp_dir_created) {
    print "Images dir could not be create";
    exit;
  }
}