You are here

public function BmTestProfiles::testProfilePage in Backup and Migrate 7.3

Verify the profile page has the expected functionality available.

File

tests/BmTestProfiles.test, line 37
Tests the profiles functionality.

Class

BmTestProfiles
Test that the front page still loads.

Code

public function testProfilePage() {

  // Load the main B&M page.
  $this
    ->drupalGet(BACKUP_MIGRATE_MENU_PATH . '/settings');
  $this
    ->assertResponse(200);

  // Confirm the page has the expected settings details.
  $this
    ->assertText('Settings Profiles');
  $this
    ->assertText('Default Settings');
  $this
    ->assertLink('Create a new settings profile');
}