Test the create => edit => delete chain
- Version:
-
- 1.0
- Source:
Test the create => edit => delete chain
Test template => edit a DBObject
Test template => create a DBObject
Test template => delete a DBObject and perform various tests on the output of simple find requests
- Overall tests
. DBObject
. findByName always return an Array
. findById returns null when looking for an invalid ID
. 0 or 1 User matching a User.findByName() (unique field)
. Nested objects from soft/hard deletes are not instanceof DBObjects
. Nested objects from DBObject::populate() are instanceof DBObjects
. UserRoute
. User::password is never returned from a soft/hard deletes
- Soft delete
. DeleteData is fully populated in the returned object
. DeleteData fields are valid (deletor, date)
- Hard delete
. linkedObjects are removed from DB
. Object is removed from DB
- Soft & hard delete
. Returned object is preserved