<?php

namespace App\Console\Commands;

use Illuminate\Http\Client\PendingRequest;
use InstallerToolkit\PackageTestCommand;
use RuntimeException;

class PackageTest extends PackageTestCommand
{
    protected function assertAppSpecificFunctionality(PendingRequest $client, string $baseUri): void
    {
        $response = $client->get($baseUri.'/pets');

        if ($response->status() !== 200) {
            throw new RuntimeException("Expected /pets to return 200, got {$response->status()}.");
        }
    }
}
