0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/test/integration/model
Gabor Javorszky 8487dada0b Implement user and related content deletion
Closes #3100

* Introduces `destroyByAuhor`, given a context and an id, it will check if context has permission to delete the user by the id, and then deletes all the content where `author_id` is id, and then deletes the user
* Does multiple checks to make sure user exists
* Added a fixture `posts:mu` that creates 4 users belonging to 4 roles, 50 posts that have authors evenly distributed, 5 tags and all 50 have one tag attached to it, evenly distributed.

Caveats / questions

* Started testing
2014-07-31 03:48:59 +01:00
..
model_app_fields_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
model_app_settings_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
model_apps_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
model_permissions_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
model_posts_spec.js Implement user and related content deletion 2014-07-31 03:48:59 +01:00
model_roles_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
model_settings_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
model_tags_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
model_users_spec.js Merge pull request #3443 from halfdan/30850-users-api 2014-07-30 22:47:55 +01:00