From 0c82cad7cd5b174f328b5bd73c73e46d2b1a333e Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Mon, 7 Oct 2024 15:14:02 +0200 Subject: [PATCH] chore: let's see --- .../tests/integration/api/discussions/CreateTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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(