<?php

namespace App\Tests\Entity;

use App\Entity\Devis;
use App\Entity\DevisLine;
use PHPUnit\Framework\TestCase;

class DevisLineTest extends TestCase
{
    public function testGettersAndSetters()
    {
        $devisLine = new DevisLine();
        $devis = new Devis();

        $devisLine->setDevi($devis); // Use setDevi
        $devisLine->setProduct('Product X'); // Use setProduct
        $devisLine->setPos(1); // Use setPos
        $devisLine->setPriceHt(50.0); // Use setPriceHt
        $devisLine->setPriceHtSup(10.0); // Use setPriceHtSup
        $devisLine->setDay(2); // Use setDay

        $this->assertSame($devis, $devisLine->getDevi());
        $this->assertEquals('Product X', $devisLine->getProduct());
        $this->assertEquals(1, $devisLine->getPos());
        $this->assertEquals(50.0, $devisLine->getPriceHt());
        $this->assertEquals(10.0, $devisLine->getPriceHtSup());
        $this->assertEquals(2, $devisLine->getDay());
    }
}
