From ea207e8d3e4a30f4e869093e4d4fe017a073e83d Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 1 Dec 2021 14:53:15 +0100 Subject: [PATCH] MOBILE-3833 behat: Implement privacy provider --- .../behat-plugin/classes/privacy/provider.php | 32 +++++++++++++++++++ .../lang/en/local_moodleappbehat.php | 1 + 2 files changed, 33 insertions(+) create mode 100644 scripts/templates/behat-plugin/classes/privacy/provider.php diff --git a/scripts/templates/behat-plugin/classes/privacy/provider.php b/scripts/templates/behat-plugin/classes/privacy/provider.php new file mode 100644 index 000000000..297b4b455 --- /dev/null +++ b/scripts/templates/behat-plugin/classes/privacy/provider.php @@ -0,0 +1,32 @@ +. + +namespace local_moodleappbehat\privacy; + +use core_privacy\local\metadata\null_provider; + +defined('MOODLE_INTERNAL') || die(); + +class provider implements null_provider { + + /** + * @inheritdoc + */ + public static function get_reason() : string { + return 'privacy_metadata'; + } + +} diff --git a/scripts/templates/behat-plugin/lang/en/local_moodleappbehat.php b/scripts/templates/behat-plugin/lang/en/local_moodleappbehat.php index ba8d678e0..8a54fd660 100644 --- a/scripts/templates/behat-plugin/lang/en/local_moodleappbehat.php +++ b/scripts/templates/behat-plugin/lang/en/local_moodleappbehat.php @@ -1,3 +1,4 @@