Use functions to create seed
What does this MR do?
This is the first step towards #285 (closed)
I removed the original files from scripts/seeds
and made the seed script use the factory functions for Codeception.
I extended the helper functions in tests/_support/helper/Foodsharing.php
to cover the existing SQL seed (add conversations etc). The seed control happens in src/Debug/SeedCommand.php
.
Next steps are:
- adding more randomized data with Faker
- fix problems with data (the website shows that userbot has to change their region)
- increase seed size (more users etc)
- increase seed coverage (more other data types)
How confident are you it won't break things if deployed?
Very sure
Links to related issues
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s))
Edited by Chris Oelmueller