Filament comments package with: - Polymorphic commenting on any Eloquent model - Threaded replies with configurable depth - @mentions with autocomplete and user search - Emoji reactions with toggle and who-reacted tooltips - File attachments via Livewire uploads - Reply and mention notifications via Filament notification system - Thread subscriptions for notification control - Real-time broadcasting (opt-in Echo) with polling fallback - Dark mode support - CommentsAction, CommentsTableAction, CommentsEntry for Filament integration - 204 tests, 421 assertions
22 lines
588 B
PHP
22 lines
588 B
PHP
<?php
|
|
|
|
use Relaticle\Comments\Filament\Infolists\Components\CommentsEntry;
|
|
|
|
it('can be instantiated via make', function () {
|
|
$entry = CommentsEntry::make('comments');
|
|
|
|
expect($entry)->toBeInstanceOf(CommentsEntry::class);
|
|
});
|
|
|
|
it('has the correct view path', function () {
|
|
$entry = CommentsEntry::make('comments');
|
|
|
|
expect($entry->getView())->toBe('comments::filament.infolists.components.comments-entry');
|
|
});
|
|
|
|
it('defaults to full column span', function () {
|
|
$entry = CommentsEntry::make('comments');
|
|
|
|
expect($entry->getColumnSpan('default'))->toBe('full');
|
|
});
|