Skip to content

Commit

Permalink
MDL-62140 core_privacy: Improve unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 24, 2018
1 parent f829edb commit 3bdcd4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions privacy/tests/contextlist_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function test_add_system_context() {
*/
public function test_add_user_context() {
$user = $this->getDataGenerator()->create_user();
$this->getDataGenerator()->create_user();

$cl = new contextlist();
$cl->add_user_context($user->id);
Expand All @@ -96,6 +97,7 @@ public function test_add_user_context() {
public function test_add_user_contexts() {
$user1 = $this->getDataGenerator()->create_user();
$user2 = $this->getDataGenerator()->create_user();
$this->getDataGenerator()->create_user();

$cl = new contextlist();
$cl->add_user_contexts([$user1->id, $user2->id]);
Expand Down

0 comments on commit 3bdcd4d

Please sign in to comment.