| 123456789101112131415161718192021222324 |
- <?php
- namespace Tests\Feature\Livewire;
- use App\Filament\Pages\StudentAnalysis;
- use App\Models\Student;
- use Livewire\Livewire;
- use Tests\TestCase;
- class StudentAnalysisTest extends TestCase
- {
- public function test_component_can_render()
- {
- Livewire::test(StudentAnalysis::class)
- ->assertStatus(200);
- }
- public function test_students_method_returns_array()
- {
- $component = new StudentAnalysis();
- $students = $component->students();
- $this->assertIsArray($students);
- }
- }
|