diff --git a/tests/Feature/Volunteers/AdminPlatformTest.php b/tests/Feature/Volunteers/AdminPlatformTest.php index 93fa8e8..3759567 100644 --- a/tests/Feature/Volunteers/AdminPlatformTest.php +++ b/tests/Feature/Volunteers/AdminPlatformTest.php @@ -61,7 +61,7 @@ public function testPlatformAdminCanViewVolunteers() \Livewire::test(ListVolunteers::class) ->assertSuccessful() - ->assertCountTableRecords(25) + ->assertCountTableRecords(10) ->assertCanSeeTableRecords($volunteers) ->assertCanRenderTableColumn('organisation.name') ->assertCanRenderTableColumn('full_name') diff --git a/tests/Feature/Volunteers/PlatformCoordinatorTest.php b/tests/Feature/Volunteers/PlatformCoordinatorTest.php index add1e59..586a1ac 100644 --- a/tests/Feature/Volunteers/PlatformCoordinatorTest.php +++ b/tests/Feature/Volunteers/PlatformCoordinatorTest.php @@ -59,7 +59,7 @@ public function testPlatformCoordinatorCanViewVolunteers() \Livewire::test(ListVolunteers::class) ->assertSuccessful() - ->assertCountTableRecords(25) + ->assertCountTableRecords(10) ->assertCanSeeTableRecords($volunteers) ->assertCanRenderTableColumn('organisation.name') ->assertCanRenderTableColumn('full_name') diff --git a/tests/Feature/Volunteers/VolunteersBaseTest.php b/tests/Feature/Volunteers/VolunteersBaseTest.php index 9e928c0..328e4de 100644 --- a/tests/Feature/Volunteers/VolunteersBaseTest.php +++ b/tests/Feature/Volunteers/VolunteersBaseTest.php @@ -4,18 +4,11 @@ namespace Tests\Feature\Volunteers; -use App\Enum\DocumentType; -use App\Enum\OrganisationStatus; -use App\Enum\UserRole; -use App\Filament\Resources\DocumentResource; -use App\Models\Document; use App\Models\Organisation; use App\Models\User; use Database\Seeders\ResourceCategorySeed; use Illuminate\Foundation\Testing\RefreshDatabase; -use Illuminate\Support\Collection; use Illuminate\Support\Facades\Notification; -use Livewire; use Tests\TestCase; abstract class VolunteersBaseTest extends TestCase @@ -37,7 +30,7 @@ protected function setUp(): void protected function createOrganisationsWithVolunteers() { Organisation::factory() - ->count(5) + ->count(2) ->withUserAndVolunteers() ->create(); }