diff --git a/tests/Feature/EmailListResource/RelationManagerTest.php b/tests/Feature/EmailListResource/RelationManagerTest.php new file mode 100644 index 0000000..aeb75fb --- /dev/null +++ b/tests/Feature/EmailListResource/RelationManagerTest.php @@ -0,0 +1,25 @@ +has(Subscriber::factory()->count(3)->has(Tag::factory()->count(1)))->create(); + + livewire(SubscribersRelationManager::class, [ + 'ownerRecord' => $emailList, + 'pageClass' => EditEmailList::class, + ]) + ->loadTable() + ->assertCanSeeTableRecords($emailList->subscribers) + ->assertCountTableRecords($emailList->subscribers()->count()); +});