mjordan / riprap

A PREMIS-compliant fixity checking microservice.
MIT License
13 stars 7 forks source link

Write an AppFixtures.php to populate Riprap with a large quanity of sample data #27

Open mjordan opened 5 years ago

mjordan commented 5 years ago

It would be useful to be able to load large quantities of test data, e.g. for testing https://github.com/mjordan/preservation_reports.

A custom AppFixtures.php file would let us run php bin/console -n doctrine:fixtures:load easily to do this.

mjordan commented 5 years ago

This gist is a fixtures generator that will load 1000 events for a single resource, injecting random days and months in the timestamp property. Modify to suit your needs.

https://gist.github.com/mjordan/cd73d31bebb2d3db9271c4e5a5e63abc