Skip to content

Commit 07b173a

Browse files
author
Logan Reynolds
committed
GRADEME-165: M4.5-specific unit test updates
1 parent aa85aff commit 07b173a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/grade_me_test.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function test_query_assign() {
232232
$rec->userid = $users[0]->id;
233233
$rec->timesubmitted = '2';
234234
$rec->attemptnumber = '1';
235-
$rec->maxattempts = '-1';
235+
$rec->maxattempts = '1';
236236

237237
$rec2 = new stdClass();
238238
$rec2->id = $plugins[3]->id;
@@ -241,7 +241,7 @@ public function test_query_assign() {
241241
$rec2->userid = $users[0]->id;
242242
$rec2->timesubmitted = '3';
243243
$rec2->attemptnumber = '1';
244-
$rec2->maxattempts = '-1';
244+
$rec2->maxattempts = '1';
245245

246246
// Tests resubmission.
247247
$rec3 = new stdClass();
@@ -251,7 +251,7 @@ public function test_query_assign() {
251251
$rec3->userid = $users[0]->id;
252252
$rec3->timesubmitted = '6';
253253
$rec3->attemptnumber = '1';
254-
$rec3->maxattempts = '-1';
254+
$rec3->maxattempts = '1';
255255

256256
$rec4 = new stdClass();
257257
$rec4->id = $plugins[1]->id;
@@ -260,7 +260,7 @@ public function test_query_assign() {
260260
$rec4->userid = $users[0]->id;
261261
$rec4->timesubmitted = '1';
262262
$rec4->attemptnumber = '1';
263-
$rec4->maxattempts = '-1';
263+
$rec4->maxattempts = '1';
264264

265265
$expected = array($rec->id => $rec, $rec2->id => $rec2, $rec3->id => $rec3, $rec4->id => $rec4);
266266
$actual = $DB->get_records_sql($sql, $insqlparams);
@@ -289,7 +289,7 @@ public function test_query_assign_maxage() {
289289
$rec->userid = $users[0]->id;
290290
$rec->timesubmitted = '2';
291291
$rec->attemptnumber = '1';
292-
$rec->maxattempts = '-1';
292+
$rec->maxattempts = '1';
293293

294294
$rec2 = new stdClass();
295295
$rec2->id = $plugins[3]->id;
@@ -298,7 +298,7 @@ public function test_query_assign_maxage() {
298298
$rec2->userid = $users[0]->id;
299299
$rec2->timesubmitted = '3';
300300
$rec2->attemptnumber = '1';
301-
$rec2->maxattempts = '-1';
301+
$rec2->maxattempts = '1';
302302

303303
// Tests resubmission.
304304
$rec3 = new stdClass();
@@ -308,7 +308,7 @@ public function test_query_assign_maxage() {
308308
$rec3->userid = $users[0]->id;
309309
$rec3->timesubmitted = '6';
310310
$rec3->attemptnumber = '1';
311-
$rec3->maxattempts = '-1';
311+
$rec3->maxattempts = '1';
312312

313313
$rec4 = new stdClass();
314314
$rec4->id = $plugins[1]->id;
@@ -317,7 +317,7 @@ public function test_query_assign_maxage() {
317317
$rec4->userid = $users[0]->id;
318318
$rec4->timesubmitted = '1';
319319
$rec4->attemptnumber = '1';
320-
$rec4->maxattempts = '-1';
320+
$rec4->maxattempts = '1';
321321

322322
$expected = array($rec->id => $rec, $rec2->id => $rec2, $rec3->id => $rec3, $rec4->id => $rec4);
323323
list($sql, $inparams) = block_grade_me_query_assign(array($users[0]->id));

0 commit comments

Comments
 (0)