Skip to content

Commit

Permalink
Merge branch 'MDL-65188-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed May 8, 2019
2 parents 83cb72b + 0ba8114 commit 32e5731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/tests/externallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1272,16 +1272,16 @@ public function test_get_course_contents_contentsinfo() {
global $USER;

$this->resetAfterTest(true);

$this->setAdminUser();
$timenow = time();

$course = self::getDataGenerator()->create_course();

$record = new stdClass();
$record->course = $course->id;
// One resource with one file.
$resource1 = self::getDataGenerator()->create_module('resource', $record);

$timenow = time();
// More type of files.
$record->files = file_get_unused_draft_itemid();
$usercontext = context_user::instance($USER->id);
Expand Down

0 comments on commit 32e5731

Please sign in to comment.