ldc-arcadia-api/tests/Unit/Domain/Models/ValueObjects/Inco/Composition/SpecialCompoundsTest.php

28 lines
779 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Tests\Unit\Domain\Models\ValueObjects\Inco\Composition;
use Domain\Models\ValueObjects\Inco\Composition\SpecialCompounds;
covers(SpecialCompounds::class);
describe('SpecialCompounds Value Object', function (): void {
it('can be instantiated with special compounds', function (): void {
// GIVEN & WHEN
$compounds = new SpecialCompounds(
choline: '10.0',
carnitine: '5.0',
taurine: '100.0',
nucleotides: '2.0',
);
// THEN
expect($compounds->choline)->toBe('10.0')
->and($compounds->carnitine)->toBe('5.0')
->and($compounds->taurine)->toBe('100.0')
->and($compounds->nucleotides)->toBe('2.0');
});
});