[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/backup/util/helper/tests/ -> cronhelper_test.php (summary)

Unit tests for backups cron helper.

Copyright: 2012 Frédéric Massart <fred@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 343 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

backup_cron_helper_testcase:: (2 methods):
  test_next_automated_backup()
  test_get_backups_to_delete()

testable_backup_cron_automated_helper:: (1 method):
  testable_get_backups_to_delete()


Class: backup_cron_helper_testcase  - X-Ref

Unit tests for backup cron helper

test_next_automated_backup()   X-Ref
Test {@link backup_cron_automated_helper::calculate_next_automated_backup}.


test_get_backups_to_delete()   X-Ref
Test {@link backup_cron_automated_helper::get_backups_to_delete}.


Class: testable_backup_cron_automated_helper  - X-Ref

Provides access to protected methods we want to explicitly test

testable_get_backups_to_delete($backupfiles, $now)   X-Ref
Provides access to protected method get_backups_to_remove.

param: array $backupfiles Existing backup files
param: int $now Starting time of the process
return: array Backup files to remove



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1