Merge branch 'MDL-57137_question_category_with_parent_category' of https://github.com/melihovv/moodle

This commit is contained in:
Andrew Nicols 2016-12-06 14:52:32 +08:00
commit 3bb4ad7521
2 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class behat_data_generators extends behat_base {
'question categories' => array(
'datagenerator' => 'question_category',
'required' => array('name', 'contextlevel', 'reference'),
'switchids' => array('questioncategory' => 'category')
'switchids' => array('questioncategory' => 'parent')
),
'questions' => array(
'datagenerator' => 'question',

View File

@ -40,6 +40,7 @@ Feature: A teacher can put questions in categories in the question bank
Scenario: A question category can be edited
When I navigate to "Categories" node in "Course administration > Question bank"
And I click on "Edit" "link" in the "Subcategory" "list_item"
And the field "parent" matches value "   Default for C1"
And I set the following fields to these values:
| Name | New name |
| Category info | I was edited |