From 5c5362e9fbf94b92241ddaaec809e250a9b7838f Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Mon, 7 Oct 2024 15:41:56 +0200 Subject: [PATCH] please --- .../integration/api/discussions/CreateTest.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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(