forked from thoth-pub/thoth-client-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPriceTest.php
More file actions
28 lines (23 loc) · 873 Bytes
/
PriceTest.php
File metadata and controls
28 lines (23 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
namespace ThothApi\Tests\GraphQL\Models;
use PHPUnit\Framework\TestCase;
use ThothApi\GraphQL\Models\Price;
final class PriceTest extends TestCase
{
public function testGettersAndSetters(): void
{
$priceId = 'f026cdd8-3728-430a-a0d6-af18f8bbe2b7';
$publicationId = '235a8a7b-830a-4828-b231-7e539fb25fcb';
$currentCode = 'USD';
$unitPrice = 12.0;
$price = new Price();
$price->setPriceId($priceId);
$price->setPublicationId($publicationId);
$price->setCurrencyCode($currentCode);
$price->setUnitPrice($unitPrice);
$this->assertSame($priceId, $price->getPriceId());
$this->assertSame($publicationId, $price->getPublicationId());
$this->assertSame($currentCode, $price->getCurrencyCode());
$this->assertSame($unitPrice, $price->getUnitPrice());
}
}