From 1fed90b0e6ea326389e3b882d4cb79ed310d5795 Mon Sep 17 00:00:00 2001 From: Andrew Caya Date: Mon, 21 Nov 2022 17:47:17 -0500 Subject: [PATCH] EVOSTDM-2792 - MDL 4.0 - Valider nos plugins - Partie 3 - Divers --- classes/privacy/provider.php | 1 + db/access.php | 1 - tests/cohortmembersync_test.php | 24 ++++++++++++++---------- tests/cohortsync_test.php | 6 +++++- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index 51fe0a5..f5d0850 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -21,6 +21,7 @@ * @copyright 2019 Université de Montréal * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + namespace tool_cohortsync\privacy; /** diff --git a/db/access.php b/db/access.php index a625fca..1de9d26 100644 --- a/db/access.php +++ b/db/access.php @@ -22,4 +22,3 @@ * @author Issam Taboubi * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - diff --git a/tests/cohortmembersync_test.php b/tests/cohortmembersync_test.php index 423938d..55f58c8 100644 --- a/tests/cohortmembersync_test.php +++ b/tests/cohortmembersync_test.php @@ -22,8 +22,11 @@ * @author Issam Taboubi * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + namespace tool_cohortsync; +use tool_cohortsync\cohortmembersync; + defined('MOODLE_INTERNAL') || die(); global $CFG; @@ -37,37 +40,38 @@ * @copyright 2016 Université de Montréal * @author Issam Taboubi * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @covers \tool_cohortsync\cohortmembersync */ class cohortmembersync_test extends \advanced_testcase { - /** @var progress_trace trace */ + /** @var \progress_trace trace */ protected $trace = null; - /** @var coursecat created */ + /** @var \coursecat created */ protected $cat1 = null; - /** @var coursecat created */ + /** @var \coursecat created */ protected $cat2 = null; - /** @var context of category 1 */ + /** @var \context of category 1 */ protected $contextcat1 = null; - /** @var context of category 2 */ + /** @var \context of category 2 */ protected $contextcat2 = null; - /** @var cohort created */ + /** @var \cohort created */ protected $cohort1 = null; - /** @var cohort created */ + /** @var \cohort created */ protected $cohort2 = null; - /** @var user created */ + /** @var \user created */ protected $user1 = null; - /** @var user created */ + /** @var \user created */ protected $user2 = null; - /** @var user created */ + /** @var \user created */ protected $user3 = null; /** diff --git a/tests/cohortsync_test.php b/tests/cohortsync_test.php index 5c2abe5..edd1b71 100644 --- a/tests/cohortsync_test.php +++ b/tests/cohortsync_test.php @@ -22,8 +22,11 @@ * @author Issam Taboubi * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + namespace tool_cohortsync; +use tool_cohortsync\cohortsync; + defined('MOODLE_INTERNAL') || die(); global $CFG; @@ -37,10 +40,11 @@ * @copyright 2016 Université de Montréal * @author Issam Taboubi * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @covers \tool_cohortsync\cohortsync */ class cohortsync_test extends \advanced_testcase { - /** @var progress_trace trace */ + /** @var \progress_trace trace */ protected $trace = null; /** @var array common columns in header */