1 backup.test | protected BackupBaseTestCase::setUp() |
Overrides BackdropWebTestCase::setUp() for upgrade testing.
Overrides BackdropWebTestCase::setUp
File
- core/
modules/ simpletest/ tests/ backup.test, line 46 - Test classes for verifying Backup and Restore functionality.
Class
- BackupBaseTestCase
- Base class for testing Backup and Restore functionality.
Code
protected function setUp() {
$module_list = func_get_arg(0);
parent::setUp($module_list);
require_once BACKDROP_ROOT . '/core/includes/update.inc';
require_once BACKDROP_ROOT . '/core/includes/backup.inc';
$this->adminUser = $this->backdropCreateUser(array(
'access content',
'access user profiles',
'access administration pages',
'administer site configuration',
'administer software updates',
'restore site backups',
'view the administration theme',
'access site in maintenance mode',
));
// Get a list of backups before the test was run.
$this->backups = backup_directory_list();
}