<?php

/*
|--------------------------------------------------------------------------
| Member Type API Tests
|--------------------------------------------------------------------------
|
| Feature tests for the /api/v1/member-types endpoint
|
*/

it('returns a successful response for member types index', function () {
    $response = $this->getJson('/api/v1/member-types');

    $response->assertStatus(200);
});

it('returns member types with correct structure', function () {
    $response = $this->getJson('/api/v1/member-types');

    $response->assertStatus(200)
        ->assertJsonStructure([
            'data',
        ]);
});

it('returns member types as array', function () {
    $response = $this->getJson('/api/v1/member-types');

    $response->assertStatus(200);

    $data = $response->json();
    expect($data)->toHaveKey('data');
    expect($data['data'])->toBeArray();
});
