- Use cases: FindAllIncoSheets & FindIncoSheet (filters, pagination, short projection) - Presentation: controllers, FormRequests with scalar validation, DTOs (camelCase) - Ports & Adapters: IncoSheetDirectory & EloquentIncoSheetDirectory - Tests: Pest 4 unit, integration, OpenAPI spectator conformance, dynamic arch tests - Docs: updated Bruno collection and OpenAPI spec
27 lines
765 B
PHP
27 lines
765 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Unit\Domain\Models\ValueObjects\IncoCompo;
|
|
|
|
use Domain\Models\ValueObjects\IncoCompo\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');
|
|
});
|
|
});
|