File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
framework/core/tests/integration/api/discussions Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,10 @@ public function cannot_create_discussion_without_content_property()
78
78
(new Extend \Formatter )
79
79
->unparse (function ($ content ) {
80
80
return $ content ;
81
- }),
81
+ })
82
+ );
82
83
84
+ $ this ->extend (
83
85
(new Extend \Event ())
84
86
->listen (\Flarum \Post \Event \Saving::class, function ($ event ) {
85
87
$ event ->post ->content ;
@@ -124,12 +126,14 @@ public function cannot_create_discussion_with_content_set_to_null()
124
126
(new Extend \Formatter )
125
127
->unparse (function ($ content ) {
126
128
return $ content ;
127
- }),
129
+ }),
130
+ );
128
131
132
+ $ this ->extend (
129
133
(new Extend \Event ())
130
134
->listen (\Flarum \Post \Event \Saving::class, function ($ event ) {
131
135
$ event ->post ->content ;
132
- })
136
+ }),
133
137
);
134
138
135
139
$ response = $ this ->send (
You can’t perform that action at this time.
0 commit comments