Skip to content

Commit 0c82cad

Browse files
chore: let's see
1 parent d37f3fc commit 0c82cad

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

framework/core/tests/integration/api/discussions/CreateTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ public function cannot_create_discussion_without_content_property()
7878
(new Extend\Formatter)
7979
->unparse(function ($content) {
8080
return $content;
81-
}),
81+
})
82+
);
8283

84+
$this->extend(
8385
(new Extend\Event())
8486
->listen(\Flarum\Post\Event\Saving::class, function ($event) {
8587
$event->post->content;
@@ -124,12 +126,14 @@ public function cannot_create_discussion_with_content_set_to_null()
124126
(new Extend\Formatter)
125127
->unparse(function ($content) {
126128
return $content;
127-
}),
129+
}),
130+
);
128131

132+
$this->extend(
129133
(new Extend\Event())
130134
->listen(\Flarum\Post\Event\Saving::class, function ($event) {
131135
$event->post->content;
132-
})
136+
}),
133137
);
134138

135139
$response = $this->send(

0 commit comments

Comments
 (0)