mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 05:53:52 +08:00
FEATURE: Add a trigger for plugins to include their own jobs.
This commit is contained in:
@ -75,6 +75,7 @@ describe PostCreator do
|
||||
DiscourseEvent.expects(:trigger).with(:post_created, anything, anything, user).once
|
||||
DiscourseEvent.expects(:trigger).with(:after_validate_topic, anything, anything).once
|
||||
DiscourseEvent.expects(:trigger).with(:before_create_topic, anything, anything).once
|
||||
DiscourseEvent.expects(:trigger).with(:after_trigger_post_process, anything).once
|
||||
creator.create
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user