mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace: - Move them to "privacy" subdir. - Rename the files to "provider_test.php", this includes old privacy_test.php and privacy_provider_test.php files - Rename the testcase to provider_test too (to match file name) Also, change some relative paths and comments to point to new locations.
This commit is contained in:
parent
57e6fb7ad9
commit
e4a2d9c1d4
@ -40,7 +40,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
/**
|
||||
* Test to check export_user_preferences.
|
||||
* returns user preferences data.
|
@ -30,7 +30,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @coversDefaultClass \tool_admin_presets\privacy\provider
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::get_metadata().
|
@ -39,7 +39,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Zig Tan <zig@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Overriding setUp() function to always reset after tests.
|
@ -39,7 +39,7 @@ use tool_dataprivacy\privacy\provider;
|
||||
* @copyright 2020 Paul Holden <paulh@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test provider get_contexts_for_userid method
|
@ -35,7 +35,7 @@ use core_privacy\local\request\transform;
|
||||
use core_privacy\local\request\writer;
|
||||
use logstore_database\privacy\provider;
|
||||
|
||||
require_once(__DIR__ . '/fixtures/event.php');
|
||||
require_once(__DIR__ . '/../fixtures/event.php');
|
||||
|
||||
/**
|
||||
* Data provider testcase class.
|
||||
@ -49,7 +49,7 @@ require_once(__DIR__ . '/fixtures/event.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
global $CFG;
|
@ -36,7 +36,7 @@ use core_privacy\local\request\writer;
|
||||
use logstore_legacy\privacy\provider;
|
||||
use logstore_legacy\event\unittest_executed;
|
||||
|
||||
require_once(__DIR__ . '/fixtures/event.php');
|
||||
require_once(__DIR__ . '/../fixtures/event.php');
|
||||
|
||||
/**
|
||||
* Data provider testcase class.
|
||||
@ -47,7 +47,7 @@ require_once(__DIR__ . '/fixtures/event.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -35,7 +35,7 @@ use core_privacy\local\request\transform;
|
||||
use core_privacy\local\request\writer;
|
||||
use logstore_standard\privacy\provider;
|
||||
|
||||
require_once(__DIR__ . '/fixtures/event.php');
|
||||
require_once(__DIR__ . '/../fixtures/event.php');
|
||||
|
||||
/**
|
||||
* Data provider testcase class.
|
||||
@ -46,7 +46,7 @@ require_once(__DIR__ . '/fixtures/event.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -50,7 +50,7 @@ require_once($CFG->dirroot . '/admin/tool/log/store/standard/tests/fixtures/even
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -45,7 +45,7 @@ use tool_messageinbound\privacy\provider;
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
global $CFG;
|
@ -37,7 +37,7 @@ use tool_mobile\privacy\provider;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -39,7 +39,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 Adrian Greeve <adriangreeve.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Set up method.
|
@ -39,7 +39,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/** @var stdClass The user object. */
|
||||
protected $user;
|
||||
|
@ -37,7 +37,7 @@ use tool_usertours\privacy\provider;
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Helper method for creating a tour
|
@ -31,10 +31,10 @@ use core_privacy\local\request\approved_userlist;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once(__DIR__ . '/fixtures/test_indicator_max.php');
|
||||
require_once(__DIR__ . '/fixtures/test_indicator_min.php');
|
||||
require_once(__DIR__ . '/fixtures/test_target_site_users.php');
|
||||
require_once(__DIR__ . '/fixtures/test_target_course_users.php');
|
||||
require_once(__DIR__ . '/../fixtures/test_indicator_max.php');
|
||||
require_once(__DIR__ . '/../fixtures/test_indicator_min.php');
|
||||
require_once(__DIR__ . '/../fixtures/test_target_site_users.php');
|
||||
require_once(__DIR__ . '/../fixtures/test_target_course_users.php');
|
||||
|
||||
/**
|
||||
* Unit tests for privacy.
|
||||
@ -43,7 +43,7 @@ require_once(__DIR__ . '/fixtures/test_target_course_users.php');
|
||||
* @copyright 2018 David Monllaó {@link http://www.davidmonllao.com}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
|
@ -38,7 +38,7 @@ use auth_manual\privacy\provider;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/** @var \auth_plugin_manual Keeps the authentication plugin. */
|
||||
protected $authplugin;
|
@ -40,7 +40,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Victor Deniz <victor@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
/**
|
||||
* Set up method.
|
||||
*/
|
@ -39,7 +39,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
/**
|
||||
* Set up method.
|
||||
*/
|
@ -42,7 +42,7 @@ use core_auth\privacy\provider;
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -34,7 +34,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test getting the context for the user ID related to this plugin.
|
@ -47,7 +47,7 @@ require_once($CFG->libdir . '/badgeslib.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -30,12 +30,12 @@ use core_privacy\local\request\approved_userlist;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Class block_comments_privacy_provider_testcase.
|
||||
* Privacy provider test for block_comments.
|
||||
*
|
||||
* @copyright 2018 Shamim Rezaie <shamim@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/** @var stdClass A student who is only enrolled in course1. */
|
||||
protected $student1;
|
@ -37,7 +37,7 @@ use block_html\privacy\provider;
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/**
|
||||
* Get the list of standard format options for comparison.
|
||||
*
|
@ -33,7 +33,7 @@ use block_myoverview\privacy\provider;
|
||||
* @copyright 2018 Peter Dias <peter@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/**
|
||||
* Ensure that export_user_preferences returns no data if the user has not visited the myoverview block.
|
||||
*/
|
@ -38,7 +38,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since Moodle 3.6
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test getting the context for the user ID related to this plugin.
|
@ -34,7 +34,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -43,7 +43,7 @@ use core_block\privacy\provider;
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -35,7 +35,7 @@ use block_timeline\privacy\provider;
|
||||
* @copyright 2018 Peter Dias <peter@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Ensure that export_user_preferences returns no data if the user has not visited the myoverview block.
|
@ -46,7 +46,7 @@ require_once($CFG->dirroot . '/comment/lib.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -43,7 +43,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Zig Tan <zig@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Overriding setUp() function to always reset after tests.
|
@ -38,7 +38,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -39,7 +39,7 @@ use core_privacy\tests\request\approved_contextlist;
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
protected function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -47,7 +47,7 @@ use core_competency\privacy\provider;
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
global $PAGE;
|
@ -36,7 +36,7 @@ require_once($CFG->dirroot . '/completion/tests/fixtures/completion_creation.php
|
||||
* @copyright 2018 Adrian Greeve <adriangreeve.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
use \completion_creation;
|
||||
|
@ -43,7 +43,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2020 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Setup to ensure that fixtures are loaded.
|
@ -14,6 +14,11 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace core_courseformat\privacy;
|
||||
|
||||
use context_course;
|
||||
use core_privacy\local\request\writer;
|
||||
|
||||
/**
|
||||
* Privacy tests for core_courseformat.
|
||||
*
|
||||
@ -22,13 +27,7 @@
|
||||
* @copyright 2021 Ferran Recio <ferran@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace core_courseformat\privacy;
|
||||
|
||||
use context_course;
|
||||
use core_privacy\local\request\writer;
|
||||
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::test_export_user_preferences().
|
@ -36,7 +36,7 @@ use core_privacy\local\request\transform;
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
use \completion_creation;
|
||||
|
@ -37,7 +37,7 @@ use core_customfield\privacy\provider;
|
||||
* @copyright 2019 Marina Glancy
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Generate data.
|
@ -36,7 +36,7 @@ use enrol_cohort\privacy\provider;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test getting the context for the user ID related to this plugin.
|
@ -38,7 +38,7 @@ use enrol_flatfile\privacy\provider;
|
||||
* @copyright 2018 Jake Dallimore <jrhdallimore@gmail.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/** @var \stdClass $user1 a test user.*/
|
||||
protected $user1;
|
@ -34,7 +34,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* @var stdClass The user
|
@ -36,7 +36,7 @@ use enrol_meta\privacy\provider;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Enable enrol_meta plugin.
|
@ -31,12 +31,12 @@ use enrol_paypal\privacy\provider;
|
||||
use core_privacy\local\request\writer;
|
||||
|
||||
/**
|
||||
* Class enrol_paypal_privacy_provider_testcase.
|
||||
* Privacy provider test for enrol_paypal.
|
||||
*
|
||||
* @copyright 2018 Shamim Rezaie <shamim@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/** @var stdClass A user whose email address matches the business field in some of the PayPal transactions. */
|
||||
protected $businessuser1;
|
@ -40,7 +40,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
/**
|
||||
* Check that a course context is returned if there is any user data for this user.
|
||||
*/
|
@ -36,7 +36,7 @@ use core_privacy\local\request\transform;
|
||||
* @copyright 2018 Jake Dallimore <jrhdallimore@gmail.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest(true);
|
@ -33,7 +33,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test getting the context for the user ID related to this plugin.
|
@ -38,7 +38,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test getting the context for the user ID related to this plugin.
|
@ -39,7 +39,7 @@ use gradingform_guide\privacy\provider;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Ensure that export_user_preferences returns no data if the user has no data.
|
@ -36,7 +36,7 @@ use context_module;
|
||||
* @copyright 2018 Adrian Greeve <adriangreeve.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test the export of rubric data.
|
@ -40,7 +40,7 @@ use core_grading\privacy\provider;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/** @var stdClass User without data. */
|
||||
protected $user0;
|
@ -38,7 +38,7 @@ use gradereport_grader\privacy\provider;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -36,7 +36,7 @@ use gradereport_user\privacy\provider;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -45,7 +45,7 @@ require_once($CFG->libdir . '/gradelib.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
global $PAGE;
|
@ -32,12 +32,12 @@ use core_group\privacy\provider;
|
||||
use core_privacy\local\request\writer;
|
||||
|
||||
/**
|
||||
* Class core_group_privacy_provider_testcase.
|
||||
* Privacy provider test for core_group.
|
||||
*
|
||||
* @copyright 2018 Shamim Rezaie <shamim@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::get_metadata().
|
@ -37,7 +37,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/**
|
||||
* One test to check fetch and export of all drafts.
|
||||
*/
|
@ -36,7 +36,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* When no preference exists, there should be no export.
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Provides the {@link core_form_privacy_provider_testcase} class.
|
||||
* Provides the {@see \core_form\privacy\provider_test} class.
|
||||
*
|
||||
* @package core_form
|
||||
* @category test
|
||||
@ -35,7 +35,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 David Mudrák <david@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* When no preference exists, there should be no export.
|
@ -36,7 +36,7 @@ use core_userkey\privacy\provider;
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
/**
|
||||
* Export for a user with no keys in the specified instance will not have any data exported.
|
||||
*/
|
@ -34,7 +34,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -31,7 +31,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 Mihail Geshoski <mihail@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
/**
|
||||
* Basic setup for these tests.
|
||||
*/
|
||||
@ -58,4 +58,3 @@ class privacy_test extends provider_testcase {
|
||||
$this->assertEmpty($contextlist);
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::get_metadata().
|
@ -39,7 +39,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/** @var stdClass the mnet host we are using to test. */
|
||||
protected $mnethost;
|
@ -27,7 +27,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/mod/assign/locallib.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy/provider_test.php');
|
||||
|
||||
/**
|
||||
* Unit tests for mod/assign/feedback/comments/classes/privacy/
|
||||
@ -35,7 +35,7 @@ require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \mod_assign\privacy\privacy_test {
|
||||
class provider_test extends \mod_assign\privacy\provider_test {
|
||||
|
||||
/**
|
||||
* Convenience function for creating feedback data.
|
@ -27,7 +27,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/mod/assign/locallib.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy/provider_test.php');
|
||||
|
||||
use assignfeedback_editpdf\page_editor;
|
||||
use mod_assign\privacy\assign_plugin_request_data;
|
||||
@ -38,7 +38,7 @@ use mod_assign\privacy\assign_plugin_request_data;
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \mod_assign\privacy\privacy_test {
|
||||
class provider_test extends \mod_assign\privacy\provider_test {
|
||||
|
||||
public function setUp(): void {
|
||||
// Skip this test if ghostscript is not supported.
|
@ -27,7 +27,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/mod/assign/locallib.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy/provider_test.php');
|
||||
|
||||
use mod_assign\privacy\assign_plugin_request_data;
|
||||
|
||||
@ -37,7 +37,7 @@ use mod_assign\privacy\assign_plugin_request_data;
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \mod_assign\privacy\privacy_test {
|
||||
class provider_test extends \mod_assign\privacy\provider_test {
|
||||
|
||||
/**
|
||||
* Convenience function for creating feedback data.
|
@ -26,7 +26,7 @@ namespace assignsubmission_comments\privacy;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy/provider_test.php');
|
||||
|
||||
use mod_assign\privacy\useridlist;
|
||||
|
||||
@ -36,7 +36,7 @@ use mod_assign\privacy\useridlist;
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \mod_assign\privacy\privacy_test {
|
||||
class provider_test extends \mod_assign\privacy\provider_test {
|
||||
|
||||
/**
|
||||
* Convenience function for creating feedback data.
|
@ -26,7 +26,7 @@ namespace assignsubmission_file\privacy;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy/provider_test.php');
|
||||
|
||||
/**
|
||||
* Unit tests for mod/assign/submission/file/classes/privacy/
|
||||
@ -34,7 +34,7 @@ require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \mod_assign\privacy\privacy_test {
|
||||
class provider_test extends \mod_assign\privacy\provider_test {
|
||||
|
||||
/**
|
||||
* Convenience function for creating feedback data.
|
@ -26,7 +26,7 @@ namespace assignsubmission_onlinetext\privacy;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
require_once($CFG->dirroot . '/mod/assign/tests/privacy/provider_test.php');
|
||||
|
||||
/**
|
||||
* Unit tests for mod/assign/submission/onlinetext/classes/privacy/
|
||||
@ -34,7 +34,7 @@ require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \mod_assign\privacy\privacy_test {
|
||||
class provider_test extends \mod_assign\privacy\provider_test {
|
||||
|
||||
/**
|
||||
* Convenience function for creating feedback data.
|
@ -40,7 +40,7 @@ use mod_assign\privacy\provider;
|
||||
* @copyright 2018 Adrian Greeve <adrian@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Convenience method for creating a submission.
|
@ -26,7 +26,7 @@ namespace mod_assignment\privacy;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once(__DIR__ . '/../lib.php');
|
||||
require_once(__DIR__ . '/../../lib.php');
|
||||
|
||||
use mod_assignment\privacy\provider;
|
||||
use core_privacy\local\request\approved_contextlist;
|
||||
@ -42,7 +42,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 Zig Tan <zig@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* @var int array Array of test student ids associated for Course 1.
|
@ -39,7 +39,7 @@ use core_privacy\local\request\userlist;
|
||||
* @author Jesus Federico (jesus [at] blindsidenetworks [dt] com)
|
||||
* @covers \mod_bigbluebuttonbn\privacy\provider
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::get_metadata().
|
@ -46,7 +46,7 @@ require_once($CFG->dirroot . '/mod/chat/lib.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
global $PAGE;
|
@ -36,7 +36,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Jun Pataleta
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/** @var stdClass The student object. */
|
||||
protected $student;
|
||||
|
@ -36,7 +36,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Marina Glancy
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/** @var stdClass The student object. */
|
||||
protected $student;
|
||||
/** @var stdClass The student object. */
|
@ -46,7 +46,7 @@ require_once($CFG->dirroot . '/mod/feedback/lib.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
@ -27,7 +27,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
global $CFG;
|
||||
|
||||
require_once(__DIR__ . '/generator_trait.php');
|
||||
require_once(__DIR__ . '/../generator_trait.php');
|
||||
require_once($CFG->dirroot . '/rating/lib.php');
|
||||
|
||||
use mod_forum\privacy\provider;
|
||||
@ -38,7 +38,7 @@ use mod_forum\privacy\provider;
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
// Include the privacy subcontext_info trait.
|
||||
// This includes the subcontext builders.
|
@ -41,7 +41,7 @@ require_once($CFG->dirroot . '/rating/lib.php');
|
||||
* @copyright 2018 Simey Lameze <simey@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/** @var stdClass The student object. */
|
||||
protected $student;
|
||||
|
@ -38,7 +38,7 @@ use \core_privacy\tests\provider_testcase;
|
||||
* @copyright 2020 Ferran Recio <ferran@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/** @var stdClass User without any attempt. */
|
||||
protected $student0;
|
@ -44,7 +44,7 @@ use mod_lesson\privacy\provider;
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
global $PAGE;
|
@ -32,7 +32,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -32,7 +32,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -37,7 +37,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::get_metadata().
|
@ -35,7 +35,7 @@ use quizaccess_seb\quiz_settings;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once(__DIR__ . '/test_helper_trait.php');
|
||||
require_once(__DIR__ . '/../test_helper_trait.php');
|
||||
|
||||
/**
|
||||
* PHPUnit tests for privacy provider.
|
||||
@ -43,7 +43,7 @@ require_once(__DIR__ . '/test_helper_trait.php');
|
||||
* @copyright 2020 Catalyst IT
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
use \quizaccess_seb_test_helper_trait;
|
||||
|
||||
/**
|
@ -36,7 +36,7 @@ require_once($CFG->dirroot . '/question/engine/questionattempt.php');
|
||||
/**
|
||||
* Privacy provider tests class.
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/**
|
||||
* When no preference exists, there should be no export.
|
||||
*/
|
@ -37,7 +37,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/**
|
||||
* When no preference exists, there should be no export.
|
||||
*/
|
@ -40,7 +40,7 @@ require_once($CFG->dirroot . '/question/engine/questionattempt.php');
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
/**
|
||||
* When no preference exists, there should be no export.
|
||||
*/
|
@ -41,7 +41,7 @@ require_once($CFG->dirroot . '/question/tests/privacy_helper.php');
|
||||
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
use \core_question_privacy_helper;
|
||||
|
@ -35,7 +35,7 @@ use scormreport_basic\privacy\provider;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -35,7 +35,7 @@ use scormreport_interactions\privacy\provider;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -35,7 +35,7 @@ use scormreport_objectives\privacy\provider;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Basic setup for these tests.
|
@ -38,7 +38,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 Sara Arjona <sara@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/** @var stdClass User without any AICC/SCORM attempt. */
|
||||
protected $student0;
|
@ -46,7 +46,7 @@ require_once($CFG->dirroot . '/mod/survey/lib.php');
|
||||
* @author Frédéric Massart <fred@branchup.tech>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
public function setUp(): void {
|
||||
global $PAGE;
|
@ -43,7 +43,7 @@ require_once($CFG->dirroot.'/mod/wiki/locallib.php');
|
||||
* @copyright 2018 Marina Glancy
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/** @var array */
|
||||
protected $users = [];
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Provides the {@link workshopallocation_manual_privacy_provider_testcase} class.
|
||||
* Provides the {@see workshopallocation_manual\privacy\provider_test} class.
|
||||
*
|
||||
* @package workshopallocation_manual
|
||||
* @category test
|
||||
@ -34,7 +34,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2018 David Mudrák <david@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* When no preference exists, there should be no export.
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Provides the {@link workshopform_accumulative_privacy_provider_testcase} class.
|
||||
* Provides the {@see workshopform_accumulative\provider_test} class.
|
||||
*
|
||||
* @package workshopform_accumulative
|
||||
* @category test
|
||||
@ -37,7 +37,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 David Mudrák <david@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test {@link workshopform_accumulative\privacy\provider::export_assessment_form()} implementation.
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Provides the {@link workshopform_comments_privacy_provider_testcase} class.
|
||||
* Provides the {@see workshopform_comments\privacy\provider_test} class.
|
||||
*
|
||||
* @package workshopform_comments
|
||||
* @category test
|
||||
@ -37,7 +37,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 David Mudrák <david@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test {@link workshopform_comments\privacy\provider::export_assessment_form()} implementation.
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Provides the {@link workshopform_numerrors_privacy_provider_testcase} class.
|
||||
* Provides the {@see workshopform_numerrors\privacy\provider_test} class.
|
||||
*
|
||||
* @package workshopform_numerrors
|
||||
* @category test
|
||||
@ -37,7 +37,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 David Mudrák <david@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test {@link workshopform_numerrors\privacy\provider::export_assessment_form()} implementation.
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Provides the {@link workshopform_rubric_privacy_provider_testcase} class.
|
||||
* Provides the {@see workshopform_rubric\privacy\provider_test} class.
|
||||
*
|
||||
* @package workshopform_rubric
|
||||
* @category test
|
||||
@ -37,7 +37,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 David Mudrák <david@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/**
|
||||
* Test {@link workshopform_rubric\privacy\provider::export_assessment_form()} implementation.
|
@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Provides the {@link mod_workshop_privacy_provider_testcase} class.
|
||||
* Provides the {@see mod_workshop\privacy\provider_test} class.
|
||||
*
|
||||
* @package mod_workshop
|
||||
* @category test
|
||||
@ -37,7 +37,7 @@ use core_privacy\tests\provider_testcase;
|
||||
* @copyright 2018 David Mudrák <david@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_provider_test extends provider_testcase {
|
||||
class provider_test extends provider_testcase {
|
||||
|
||||
/** @var testing_data_generator */
|
||||
protected $generator;
|
@ -35,7 +35,7 @@ use core_my\privacy\provider;
|
||||
* @copyright 2018 Zig Tan <zig@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::test_export_user_preferences().
|
@ -40,7 +40,7 @@ use core_privacy\local\request\approved_userlist;
|
||||
* @copyright 2018 Zig Tan <zig@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class privacy_test extends \core_privacy\tests\provider_testcase {
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Test for provider::get_contexts_for_userid().
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user