protected function RemoteStreamWrapperTestCase::drupalGetTestFiles in Remote Stream Wrapper 7
Same name and namespace in other branches
- 8 remote_stream_wrapper.test \RemoteStreamWrapperTestCase::drupalGetTestFiles()
Override DrupalWebTestCase::drupalGetTestFiles to return 'external' files.
Overrides DrupalWebTestCase::drupalGetTestFiles
3 calls to RemoteStreamWrapperTestCase::drupalGetTestFiles()
- RemoteStreamWrapperTestCase::testFileCrud in ./
remote_stream_wrapper.test - Test file CRUD functions with remote files.
- RemoteStreamWrapperTestCase::testFileStat in ./
remote_stream_wrapper.test - Check that basic-level file functions return expected values.
- RemoteStreamWrapperTestCase::testRemoteImageStyles in ./
remote_stream_wrapper.test - Test that remote images can be used with image styles.
File
- ./
remote_stream_wrapper.test, line 23
Class
- RemoteStreamWrapperTestCase
- Tests for the remote_stream_wrapper module.
Code
protected function drupalGetTestFiles($type, $size = NULL) {
$files = parent::drupalGetTestFiles($type, $size);
foreach ($files as $file) {
$file->original_uri = $file->uri;
$file->uri = file_create_url($file->uri);
}
return $files;
}