You are here

protected function CommentAlterFileTestCase::getTestFile in Comment Alter 7

2 calls to CommentAlterFileTestCase::getTestFile()
CommentAlterFileTestCase::testFileFieldMultiple in ./comment_alter.test
CommentAlterFileTestCase::testFileFieldSingle in ./comment_alter.test

File

./comment_alter.test, line 533
Functional tests for the Comment Alter module.

Class

CommentAlterFileTestCase
Functional tests for Comment Alter and File fields.

Code

protected function getTestFile($type_name, $which = 0) {
  $files = $this
    ->drupalGetTestFiles($type_name, NULL);
  $file = $files[$which];
  $file->filesize = filesize($file->uri);
  return $file;
}