Skip to content

Commit

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

0 comments on commit 5c5362e

Please sign in to comment.