You are here

function FileDirectoryTest::testFileDirectoryTemp in SimpleTest 7

Check file_directory_path() and file_directory_path('temporary').

File

tests/file.test, line 745
This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.

Class

FileDirectoryTest
Directory related tests.

Code

function testFileDirectoryTemp() {

  // Temporary directory handling.
  variable_set('file_directory_temp', NULL);
  $temp = file_directory_path('temporary');
  $this
    ->assertTrue(!is_null($temp), t('Properly set and retrieved temp directory %directory.', array(
    '%directory' => $temp,
  )), 'File');
}