diff --git a/framework/core/tests/integration/api/discussions/CreateTest.php b/framework/core/tests/integration/api/discussions/CreateTest.php index c0241ca9b1..ab3b4f5d68 100644 --- a/framework/core/tests/integration/api/discussions/CreateTest.php +++ b/framework/core/tests/integration/api/discussions/CreateTest.php @@ -79,14 +79,12 @@ public function cannot_create_discussion_without_content_property() ->unparse(function ($content) { return $content; }) - ); - // $this->extend( - // (new Extend\Event()) - // ->listen(\Flarum\Post\Event\Saving::class, function ($event) { - // $event->post->content; - // }) - // ); + (new Extend\Event()) + ->listen(\Flarum\Post\Event\Saving::class, function ($event) { + $event->post->content; + }) + ); $response = $this->send( $this->request('POST', '/api/discussions', [ @@ -122,14 +120,12 @@ public function cannot_create_discussion_without_content_property() */ public function cannot_create_discussion_with_content_set_to_null() { - // $this->extend( - // (new Extend\Formatter) - // ->unparse(function ($content) { - // return $content; - // }) - // ); - $this->extend( + (new Extend\Formatter) + ->unparse(function ($content) { + return $content; + }) + (new Extend\Event()) ->listen(\Flarum\Post\Event\Saving::class, function ($event) { $event->post->content;