<?php
declare(strict_types=1);
namespace Tests\Adawolfa\Fucktura\Entity\Invoice;
use Adawolfa\Fucktura\Entity\Invoice;
use Tests\Adawolfa\Fucktura\TestCase;
final class LineTest extends TestCase
{
public function testLine(): void
{
$em = $this->getEntityManager();
$ef = $this->getEntityFactory();
$invoice = $ef->createInvoice();
$ef->createInvoiceLine($invoice, 'Foo', '13.4', '6.5');
$em->clear();
$line = $em->find(Invoice\Line::class, 1);
$this->assertSame('Foo', $line->description);
$this->assertSame('13.4000', $line->unitPrice);
$this->assertSame('6.50', $line->quantity);
$this->assertSame('87.1000', $line->price);
}
}