Commit Graph

28 Commits

Author SHA1 Message Date
Marina Glancy 44e86fb3d5 MDL-34859 backup: add restore defaults 2017-03-20 14:59:45 +08:00
Marina Glancy 92253b15b7 MDL-40838 backup: restore enrolment methods without users 2017-02-20 12:08:35 +08:00
David Monllao 8643c576c7 MDL-22078 course: Complete proposed patch
- New site setting to define the default course duration (used to set
  the default end date for some course formats)
- End date setting out of restore
- Fix tool_uploadcourse
- Other fixes here and there
2016-10-05 12:31:05 +08:00
Daniel Neis Araujo fbcdb0d710 MDL-22078 course: add end date 2016-10-03 09:51:36 +08:00
Eloy Lafuente (stronk7) 07a069f1c0 MDL-50063 unittests: Remove some unnecesary gc_collect_cycles()
Now backup and restore operations free logger resources calling
to the destroy() method. This commit ensures:

1) That gc_collect_cycles() is not used anymore in backup-related tests.
2) That all backup and restore controllers in test do always call
   to the detroy() method.
3) Some unset() calls, needed to make gc_collect_cycles() are not used
   anymore.
2016-05-13 02:50:45 +02:00
Ryan Wyllie cfe12ff033 MDL-49545 backup: Restore does not respect some capabilities
Thanks to Daniel Neis for the original patch that formed the
basis of these changes.
2015-10-15 02:45:27 +00:00
Damyon Wiese 74df2951d1 Revert "MDL-39876 Change get_record('course') calls to get_course"
This reverts commit ab7632b74c.
2013-08-21 13:42:30 +08:00
sam marshall ab7632b74c MDL-39876 Change get_record('course') calls to get_course 2013-08-15 11:31:20 +01:00
Petr Škoda 4c21b22043 MDL-36753 fix invalid sectionid in backup tests 2012-11-21 12:43:55 +01:00
Marina Glancy 384c3510a9 MDL-35339 Course functions unit tests 2012-10-15 14:08:14 +08:00
Adrian Greeve a689cd1def MDL-34469 - lib - replacement of the deprecated get_context_instance and get_context_by_id functions (group 15) 2012-07-30 14:59:57 +08:00
Petr Skoda bb7898c6ab MDL-32569 convert remaining backup tests and drop old simpletests 2012-04-21 16:24:33 +02:00
Sam Hemelryk d4e2d9463e MDL-32353 fixed up very minor whitespace 2012-04-16 15:23:05 +12:00
Eric Merrill eba9236cea MDL-32353 backup: Flaw in settings logic for user info and anonymise 2012-04-12 11:01:08 -04:00
Petr Skoda 4b02743182 MDL-32149 improve testcase naming and list in config file 2012-04-03 22:30:57 +02:00
Petr Skoda 1cbf2a20ca MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase 2012-04-03 22:30:56 +02:00
Petr Skoda dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00
Eloy Lafuente (stronk7) 2a4ba40f31 MDL-28488 backup - '[backup|restore]:configure cap does not control import mode anymore 2011-09-11 19:09:59 +02:00
Eloy Lafuente (stronk7) 77c2ca69af MDL-28488 backup - make backup and import capabilities independent
Before this change, in order to perform one course import it was
necessary to have both the backupcourse and the backuptargetimport
capabilities. After agreement now each one will control its own
backup mode. Same applies for restore.
2011-09-09 17:46:21 +02:00
Eloy Lafuente 9af849fa73 MDL-24918 backup - fix setting use leading to wrong security check error 2010-10-28 18:04:35 +00:00
Sam Hemelryk 548f565f7d backup MDL-23437 Restore now locks the course_startdate setting if the user doesn't have the rolldates capability 2010-09-10 07:54:15 +00:00
Sam Hemelryk 86234a925a backup MDL-23437 Backup and restore now check moodle/backup|restore:configure capability and lock settings if the user does not have the cap 2010-09-10 07:38:13 +00:00
Eloy Lafuente df7264331b MDL-23437 backup - restore security checks 2010-09-05 21:49:34 +00:00
Eloy Lafuente fbc2778d1c MDL-21432 backup - rest of helper files 2010-07-06 22:35:02 +00:00
Eloy Lafuente 2e14f78bd7 MDL-21432 backup - enforce users = no on hub/import backups 2010-05-03 08:54:30 +00:00
Eloy Lafuente 3eeb2fd55d MDL-22141 backup - security always throw exception 2010-05-02 22:41:07 +00:00
Eloy Lafuente c0772270d7 MDL-22141 implement security checks. sensible settings applied and locked 2010-05-02 22:02:02 +00:00
Eloy Lafuente 69dd0c8cbf MDL-21432 backup 2.0 - initial commit. util dir 2010-04-21 09:17:06 +00:00