forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-78902 backup: fix restore random question.
- Loading branch information
1 parent
513f3b0
commit 233759c
Showing
3 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
backup/moodle2/tests/behat/restore_random_question.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@core @core_backup | ||
Feature: Restore random question | ||
|
||
Background: | ||
Given the following "courses" exist: | ||
| fullname | shortname | category | | ||
| Course 1 | C1 | 0 | | ||
|
||
@javascript @_file_upload | ||
Scenario: Restore the quiz from 3.9 containing random questions | ||
Given I am on the "Course 1" "restore" page logged in as "admin" | ||
And I press "Manage course backups" | ||
And I upload "backup/moodle2/tests/fixtures/test_random_question_39.mbz" file to "Files" filemanager | ||
And I press "Save changes" | ||
And I restore "test_random_question_39.mbz" backup into "Course 1" course using this options: | ||
When I am on the "Test MDL-78902 quiz" "mod_quiz > edit" page logged in as admin | ||
Then I should see "See questions" | ||
And I click on "See questions" "link" | ||
Then I should see "Test MDL-78902 T/F question" |
Binary file not shown.