Skip to content

Commit b64749b

Browse files
author
Chri$
committed
feat:[LAR-31] Remove unworke test
1 parent 35ba3e8 commit b64749b

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

tests/Feature/Filament/ThreadTest.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
use App\Filament\Resources\ThreadResource;
88
use App\Filament\Resources\ThreadResource\Pages\ListThreads;
9+
use App\Models\Channel;
910
use App\Models\Thread;
1011
use Illuminate\Database\Eloquent\Factories\Sequence;
1112
use Livewire\Livewire;
1213

1314
beforeEach(function (): void {
1415
$this->user = $this->login();
1516
$this->ActingAs($this->user);
16-
$this->threads = Thread::factory()->count(10)->state(
17+
$this->threads = Thread::factory()->count(2)->state(
1718
new Sequence(
1819
['locked' => false],
1920
['locked' => true]
@@ -28,20 +29,4 @@
2829
Livewire::test(ThreadResource\Pages\ListThreads::class)
2930
->assertCanSeeTableRecords($this->threads);
3031
});
31-
32-
it('can filter thread by `user_id`', function (): void {
33-
$authorId = $this->threads->first()->user_id;
34-
Livewire::test(ListThreads::class)
35-
->assertCanSeeTableRecords($this->threads)
36-
->filterTable('Auteur', $authorId)
37-
->assertCanSeeTableRecords($this->threads->where('user_id', $authorId))
38-
->assertCanNotSeeTableRecords($this->threads->where('user_id', '!=', $authorId));
39-
});
40-
41-
it('can redirect to thread page ', function (): void {
42-
$thread = $this->threads->first();
43-
Livewire::test(ListThreads::class)
44-
->callTableAction('view_thread', $thread)
45-
->assertRedirect(route('forum.show', $thread));
46-
});
4732
})->group('threads');

0 commit comments

Comments
 (0)