public function BmTestEmail::submitSourceFiles in Backup and Migrate 7.3
Submits the source form for Files.
Parameters
string $name: The name of the source.
string $machine_name: The machine name of the source.
string $path: The path of the source.
1 call to BmTestEmail::submitSourceFiles()
- BmTestEmail::testAddEmailDestination in tests/
BmTestEmail.test - Confirm the whole email process.
File
- tests/
BmTestEmail.test, line 196 - Test email delivery.
Class
- BmTestEmail
- Test email delivery.
Code
public function submitSourceFiles($name, $machine_name, $path) {
$this
->drupalGet('admin/config/system/backup_migrate/settings/source/add/filesource');
$this
->assertResponse(200);
$edit = array();
$edit['name'] = $name;
$edit['machine_name'] = $machine_name;
$edit['location'] = $path;
$this
->drupalPost(NULL, $edit, t('Save source'));
$this
->assertResponse(200);
}