Skip to content

Commit b674bcf

Browse files
hieuvuAnupamaSarjoshi
hieuvu
authored andcommitted
Remove wrong and duplicated data in helper
1 parent 6cff62a commit b674bcf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/behat/edit.feature

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Feature: Test editing a Crossword question
2323

2424
Scenario: Edit a Crossword question
2525
When I am on the "crossword-001" "core_question > edit" page logged in as teacher
26+
And the following fields match these values:
27+
| Question name | crossword-001 |
28+
| Question text | Crossword question text |
2629
And I set the following fields to these values:
2730
| Question name | |
2831
And I press "id_submitbutton"

tests/helper.php

-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function make_crossword_question_normal() {
7777
$cw->numrows = 5;
7878
$cw->numcolumns = 7;
7979
$cw->accentgradingtype = qtype_crossword::ACCENT_GRADING_STRICT;
80-
$cw->quotematching = 0;
8180
$cw->accentpenalty = 0;
8281
$cw->qtype = question_bank::get_qtype('crossword');
8382
$cw->generalfeedback = '';
@@ -175,7 +174,6 @@ public function get_crossword_question_form_data_normal() {
175174
$fromform->numcolumns = 7;
176175
$fromform->accentgradingtype = qtype_crossword::ACCENT_GRADING_STRICT;
177176
$fromform->accentpenalty = 0;
178-
$fromform->questiontext = 0;
179177
$fromform->quotematching = 0;
180178
return $fromform;
181179
}

0 commit comments

Comments
 (0)