fix test
This commit is contained in:
parent
faea0126ea
commit
efa20f4940
|
|
@ -65,7 +65,7 @@ class NotificationsController extends Controller
|
|||
|
||||
return [
|
||||
'title' => $notification->data['title'],
|
||||
'content' => $converter->convertToHtml($notification->data['content'] ?? ''),
|
||||
'content' => $converter->convertToHtml($notification->data['content'] ?? '')->getContent(),
|
||||
'time' => $notification->created_at->toDateTimeString(),
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ class NotificationsControllerTest extends TestCase
|
|||
$this->postJson('/user/notifications/'.$notification->id)
|
||||
->assertJson([
|
||||
'title' => $notification->data['title'],
|
||||
'content' => $converter->convertToHtml($notification->data['content']),
|
||||
'content' => $converter->convertToHtml($notification->data['content'])->getContent(),
|
||||
'time' => $notification->created_at->toDateTimeString(),
|
||||
]);
|
||||
$notification->refresh();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user