protected function PMPAPIPushWebTestCase::setUpFiles in Public Media Platform API Integration 7
Creates files to be used by tests.
1 call to PMPAPIPushWebTestCase::setUpFiles()
- PMPAPIPushWebTestCase::setUp in pmpapi_push/
tests/ pmpapi_push.test - Sets up the test environment.
File
- pmpapi_push/
tests/ pmpapi_push.test, line 88
Class
- PMPAPIPushWebTestCase
- Tests the functionality of the PMPAPI push module.
Code
protected function setUpFiles() {
$types = array(
'text',
'image',
);
foreach ($types as $type) {
foreach ($this
->drupalGetTestFiles($type) as $file) {
$this->files[$type][] = file_save($file);
}
}
}