diff --git a/framework/core/tests/integration/api/discussions/CreateTest.php b/framework/core/tests/integration/api/discussions/CreateTest.php index 7e81b1d37d..2d4bffb771 100644 --- a/framework/core/tests/integration/api/discussions/CreateTest.php +++ b/framework/core/tests/integration/api/discussions/CreateTest.php @@ -78,8 +78,10 @@ public function cannot_create_discussion_without_content_property() (new Extend\Formatter) ->unparse(function ($content) { return $content; - }), + }) + ); + $this->extend( (new Extend\Event()) ->listen(\Flarum\Post\Event\Saving::class, function ($event) { $event->post->content; @@ -124,12 +126,14 @@ public function cannot_create_discussion_with_content_set_to_null() (new Extend\Formatter) ->unparse(function ($content) { return $content; - }), + }), + ); + $this->extend( (new Extend\Event()) ->listen(\Flarum\Post\Event\Saving::class, function ($event) { $event->post->content; - }) + }), ); $response = $this->send(