You are here

function _bm_test_get_mock_source in Backup and Migrate 7.3

Helper function to create a mock source.

2 calls to _bm_test_get_mock_source()
BmTestCtools::testSettingsPage in tests/BmTestCtools.test
Confirm automated settings exist.
bm_test_exportables_backup_migrate_sources in tests/bm_test.module
Implements hook_exportables_backup_migrate_sources().

File

tests/bm_test.module, line 88
Mock module to help and test hooks.

Code

function _bm_test_get_mock_source() {
  return array(
    'machine_name' => 'mock_file_directory',
    'name' => 'Mock file directory',
    'location' => '/dev/null',
    'subtype' => 'filesource',
  );
}