From e4fde5a93ea3bcbde9354b6a4e44bd2465394386 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Fri, 25 Nov 2022 09:46:48 +0700 Subject: [PATCH] MDL-68981 tool_recyclebin: Extra PHPUnit with General restore config --- admin/tool/recyclebin/tests/category_bin_test.php | 5 +++++ admin/tool/recyclebin/tests/course_bin_test.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/admin/tool/recyclebin/tests/category_bin_test.php b/admin/tool/recyclebin/tests/category_bin_test.php index 1048bc7f708..b12aa4de0d3 100644 --- a/admin/tool/recyclebin/tests/category_bin_test.php +++ b/admin/tool/recyclebin/tests/category_bin_test.php @@ -190,6 +190,11 @@ class category_bin_test extends \advanced_testcase { (object)['plugin' => 'backup', 'name' => 'backup_auto_storage', 'value' => 2], (object)['plugin' => 'backup', 'name' => 'backup_auto_destination', 'value' => true], ]], + + 'restore/restore_general_users moodle' => [[ + (object)['plugin' => 'restore', 'name' => 'restore_general_users', 'value' => 0], + (object)['plugin' => 'restore', 'name' => 'restore_general_groups', 'value' => 0], + ]], ]; } diff --git a/admin/tool/recyclebin/tests/course_bin_test.php b/admin/tool/recyclebin/tests/course_bin_test.php index b601b52920b..821ceedf749 100644 --- a/admin/tool/recyclebin/tests/course_bin_test.php +++ b/admin/tool/recyclebin/tests/course_bin_test.php @@ -187,6 +187,11 @@ class course_bin_test extends \advanced_testcase { (object)['plugin' => 'backup', 'name' => 'backup_auto_storage', 'value' => 2], (object)['plugin' => 'backup', 'name' => 'backup_auto_destination', 'value' => true], ]], + + 'restore/restore_general_users moodle' => [[ + (object)['plugin' => 'restore', 'name' => 'restore_general_users', 'value' => 0], + (object)['plugin' => 'restore', 'name' => 'restore_general_groups', 'value' => 0], + ]], ]; }