Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.0
-
None
-
MOODLE_30_STABLE
-
Easy
Description
Steps to reproduce:
1. Write a feature file like this:
And the following "users" exist:
|
| username | firstname | lastname | email |
|
| teacher1 | Teacher | 1 | teacher1@example.com |
|
| student1 | Student | 1 | student1@example.com |
|
| student1 | Student | 2 | student1@example.com |
|
2. Run behat
Expected results:
Get error about the duplicate key (I assume)
Actual results:
(::) failed steps (::)
|
|
01. Error writing to database
|
In step `And the following "users" exist:'. # behat_data_generators::the_following_exist()
|
From scenario background. # /Users/danp/moodles/im/moodle/report/participation/tests/behat/message_participants.feature:7
|
Of feature `Use the particiaption report to message groups of students'. # /Users/danp/moodles/im/moodle/report/participation/tests/behat/message_participants.feature
|
No info about the error was provided, so it took me a while to work out what was going on.