<?php

use Datalumo\PhpSdk\Datalumo;
use Datalumo\PhpSdk\Resources\CollectionResource;
use Datalumo\PhpSdk\Resources\EntryResource;
use Datalumo\PhpSdk\Resources\IntegrationResource;

it('returns a collection resource', function () {
    $client = new Datalumo('test-token');

    expect($client->collections())->toBeInstanceOf(CollectionResource::class);
});

it('returns an entry resource for a collection', function () {
    $client = new Datalumo('test-token');

    expect($client->entries('col-123'))->toBeInstanceOf(EntryResource::class);
});

it('returns an integration resource', function () {
    $client = new Datalumo('test-token');

    expect($client->integrations())->toBeInstanceOf(IntegrationResource::class);
});
