You are here

function FileSpaceUsedTest::testUser in SimpleTest 7

Test different users with the default status.

File

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

Class

FileSpaceUsedTest
This will run tests against the file_space_used() function.

Code

function testUser() {
  $this
    ->assertEqual(file_space_used(2), 70, t("Found the size of the first user's files."));
  $this
    ->assertEqual(file_space_used(3), 300, t("Found the size of the second user's files."));
  $this
    ->assertEqual(file_space_used(), 370, t("Found the size of all user's files."));
}