Hello. I need a way to create question categories with subcategories in my behat scenarios. I tried the following:
And the following "question categories" exist:But it doesn't work, because it tries to insert, for example, "Category1" in parent field instead of id of category with name "Category1".
| contextlevel | reference | name | parent |
| Course | C1 | Category1 | 0 |
| Course | C1 | SubCategory1 | Category1 |
| Course | C1 | SubSubCategory1 | SubCategory1 |
| Course | C1 | SubCategory2 | Category1 |
| Course | C1 | Category2 | 0 |
How to do what I need?