You are here

public function BmTestEmail::submitDestinationEmail in Backup and Migrate 7.3

Submits the destination form for E-mails.

Parameters

string $name: The name of the destination.

string $machine_name: The machine name of the destination.

string $mail: The e-mail address of the destination.

1 call to BmTestEmail::submitDestinationEmail()
BmTestEmail::testAddEmailDestination in tests/BmTestEmail.test
Confirm the whole email process.

File

tests/BmTestEmail.test, line 175
Test email delivery.

Class

BmTestEmail
Test email delivery.

Code

public function submitDestinationEmail($name, $machine_name, $mail) {
  $this
    ->drupalGet('admin/config/system/backup_migrate/settings/destination/add/email');
  $this
    ->assertResponse(200);
  $edit = array();
  $edit['name'] = $name;
  $edit['machine_name'] = $machine_name;
  $edit['location'] = $mail;
  $this
    ->drupalPost(NULL, $edit, t('Save destination'));
  $this
    ->assertResponse(200);
}