<?php

namespace App\Tests\Entity;

use App\Entity\Formules;
use App\Entity\FormulesProductInclus;
use App\Entity\Product;
use PHPUnit\Framework\TestCase;

class FormulesProductInclusTest extends TestCase
{
    public function testGettersAndSetters()
    {
        $productInclus = new FormulesProductInclus();
        $formules = new Formules();
        $product = new Product();
        $config = ['key' => 'value'];

        $productInclus->setFormules($formules);
        $productInclus->setPRODUCT($product); // Note: setPRODUCT is uppercase in entity
        $productInclus->setConfig($config);

        $this->assertSame($formules, $productInclus->getFormules());
        $this->assertSame($product, $productInclus->getPRODUCT());
        $this->assertEquals($config, $productInclus->getConfig());
    }
}
