mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +03:00
c8f2dd11ba
no issue - if you delete all content, we expect two events - `post.deleted` and `post.unpublished` - `post.unpublished` was never triggered, because the api implementation made use of `collection.invoke(`destroy`)` - what happened? - you fetch all posts (columns:id) - you destroy the post (only id column is available) - the model events are triggered - but you have no access to a default set of data - the result is that the event handler can't even tell if this is a post or a page - added a proper test to ensure which events are triggered |
||
---|---|---|
.. | ||
advanced_browse_spec.js | ||
api_authentication_spec.js | ||
api_configuration_spec.js | ||
api_db_spec.js | ||
api_invites_spec.js | ||
api_mail_spec.js | ||
api_notifications_spec.js | ||
api_posts_spec.js | ||
api_roles_spec.js | ||
api_schedules_spec.js | ||
api_settings_spec.js | ||
api_slugs_spec.js | ||
api_subscribers_spec.js | ||
api_tags_spec.js | ||
api_users_spec.js | ||
api_webhooks_spec.js | ||
redirects_spec.js |