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