StudentAnalysisTest.php 536 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Tests\Feature\Livewire;
  3. use App\Filament\Pages\StudentAnalysis;
  4. use App\Models\Student;
  5. use Livewire\Livewire;
  6. use Tests\TestCase;
  7. class StudentAnalysisTest extends TestCase
  8. {
  9. public function test_component_can_render()
  10. {
  11. Livewire::test(StudentAnalysis::class)
  12. ->assertStatus(200);
  13. }
  14. public function test_students_method_returns_array()
  15. {
  16. $component = new StudentAnalysis();
  17. $students = $component->students();
  18. $this->assertIsArray($students);
  19. }
  20. }