Skip to content

Commit

Permalink
min
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Apr 11, 2024
1 parent 2ef5857 commit e418e8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/Volunteers/AdminPlatformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testPlatformAdminCanViewVolunteers()

\Livewire::test(ListVolunteers::class)
->assertSuccessful()
->assertCountTableRecords(25)
->assertCountTableRecords(10)
->assertCanSeeTableRecords($volunteers)
->assertCanRenderTableColumn('organisation.name')
->assertCanRenderTableColumn('full_name')
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Volunteers/PlatformCoordinatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function testPlatformCoordinatorCanViewVolunteers()

\Livewire::test(ListVolunteers::class)
->assertSuccessful()
->assertCountTableRecords(25)
->assertCountTableRecords(10)
->assertCanSeeTableRecords($volunteers)
->assertCanRenderTableColumn('organisation.name')
->assertCanRenderTableColumn('full_name')
Expand Down
9 changes: 1 addition & 8 deletions tests/Feature/Volunteers/VolunteersBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,7 +30,7 @@ protected function setUp(): void
protected function createOrganisationsWithVolunteers()
{
Organisation::factory()
->count(5)
->count(2)
->withUserAndVolunteers()
->create();
}
Expand Down

0 comments on commit e418e8b

Please sign in to comment.