-
Sub-task
-
Resolution: Fixed
-
Minor
-
Future Dev
-
None
Acceptance tests are black-boxed so we can't deal with the application internals (== run PHP code) to test anything, but most of the tests will need a course, a student, a teacher, their enrolments... and we don't want to replicate the same steps users follows to set it up at every test. What we can do to keep our test black-boxes is to tests this features (add a user, add a course...) like any other feature and separately we can have white-box steps to set up the most common initial environments.
We can use the current data generators for the basic actions and add more as long as we require them if they fill usual needs.
The basic entities/relations we will need are:
- Courses
- Users
- Enrolments
- Groups
- Groupings
- Blocks
- Activities
With this steps and MDL-37657 steps we have enough to add tests to tests this basic steps definitions