<?php

namespace Alma\Vendor\Alma\Client\Tests\Unit\Application\DTO\ShareOfCheckout;

use Alma\Vendor\Alma\Client\Application\DTO\ShareOfCheckout\ShareOfCheckoutOrderDto;
use PHPUnit\Framework\TestCase;

class ShareOfCheckoutOrderDtoTest extends TestCase
{
    public function testShareOfCheckoutOrderDto()
    {
        $data = [
            "order_count" => 60,
            "amount" => 30000,
            "currency" => "EUR"
        ];

        $shareOfCheckoutOrderDto = (new ShareOfCheckoutOrderDto(
            $data['order_count'],
            $data['amount'],
            $data['currency']
        ));

        $this->assertEquals($data, $shareOfCheckoutOrderDto->toArray());
    }
}