You are here

protected function BmTestBase::getProfile in Backup and Migrate 7.3

Get a profile.

Parameters

string $profile_id: The name of the profile to load. Defaults to 'default'.

Return value

object The profile object.

1 call to BmTestBase::getProfile()
BmTestProfiles::testFilenameOptions in tests/BmTestProfiles.test
Confirm the backup filename processes work as expected.

File

tests/BmTestBase.test, line 252
Shared functionality to make the rest of the tests simpler.

Class

BmTestBase
Base class for testing a module's custom tags.

Code

protected function getProfile($profile_id = 'default') {
  require_once dirname(__FILE__) . '/../includes/profiles.inc';
  return backup_migrate_get_profile($profile_id);
}