Skip to content

Commit

Permalink
Merge branch 'MDL-63921-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 20, 2018
2 parents b20a6a4 + 9f12dd7 commit 60e265e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions privacy/tests/provider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,17 @@ public function test_component_understands_deleted_users($component) {
$this->assertInstanceOf(\core_privacy\local\request\contextlist::class, $contextlist);
}

/**
* Ensure that providers do not throw an error when processing a deleted user.
*
* @dataProvider is_user_data_provider
* @param string $component
*/
public function test_userdata_provider_implements_userlist($component) {
$classname = manager::get_provider_classname_for_component($component);
$this->assertTrue(is_subclass_of($classname, \core_privacy\local\request\core_userlist_provider::class));
}

/**
* Data provider for the metadata\provider tests.
*
Expand Down

0 comments on commit 60e265e

Please sign in to comment.