Skip to content

Commit

Permalink
INT-17959: Second parameter for glossary generator should be array
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelatopen authored and fabianbatioja committed May 20, 2022
1 parent 816a85a commit 36e2482
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions tests/content_updates_task_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,12 @@ public function test_pre_course_module_delete_glossary() {
]
);

$record = new \stdClass();
$record->course = $course->id;
$record->glossary = $glossary->id;
$record->userid = $USER->id;
$record->definitionformat = FORMAT_HTML;
$record = [
'course' => $course->id,
'glossary' => $glossary->id,
'userid' => $USER->id,
'definitionformat' => FORMAT_HTML
];
$this->setAdminUser();
$entry = self::getDataGenerator()->get_plugin_generator(
'mod_glossary')->create_content($glossary, $record);
Expand Down Expand Up @@ -333,11 +334,12 @@ public function test_performance_delete_glossary() {
]
);

$record = new \stdClass();
$record->course = $course->id;
$record->glossary = $glossary->id;
$record->userid = $USER->id;
$record->definitionformat = FORMAT_HTML;
$record = [
'course' => $course->id,
'glossary' => $glossary->id,
'userid' => $USER->id,
'definitionformat' => FORMAT_HTML
];
$this->setAdminUser();

$entries = 10001; // Increase this to test larger volumes (100,001 entires = 13 seconds).
Expand Down

0 comments on commit 36e2482

Please sign in to comment.