Skip to content

Commit

Permalink
chore: let's see
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Oct 7, 2024
1 parent d37f3fc commit 0c82cad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions framework/core/tests/integration/api/discussions/CreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 0c82cad

Please sign in to comment.