You are here

public function BmTestUpdate7310::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 BmTestUpdate7310::submitDestinationEmail()
BmTestUpdate7310::testUpdate7310 in tests/BmTestUpdate7310.test
Test update 7310.

File

tests/BmTestUpdate7310.test, line 103
Test module updates.

Class

BmTestUpdate7310
Test module update 7310.

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);
}