<gh_stars>0<?php

namespace PolygonIO\Tests\Rest\Crypto;

use PolygonIO\Rest\Crypto\CryptoExchanges;
use PolygonIO\Tests\Concerns\LoadsStub;
use PolygonIO\Tests\Helpers\MocksHttp;

class CryptoExchangesTest extends \PHPUnit\Framework\TestCase
{
    use MocksHttp;
    use LoadsStub;

    public function testCryptoExchangesGetCall()
    {
        $requestsContainer = [];

        $cryptoExchanges = new CryptoExchanges('fake-api-key');
        $cryptoExchanges->httpClient = $this->getHttpMock(
            $requestsContainer, $this->loadJsonStubFile('api/v1/meta/crypto-exchanges.json')
        );

        $cryptoExchanges->get();

        $this->assertPath($requestsContainer, '/v1/meta/crypto-exchanges');
    }
}
