make chart more better yet

This commit is contained in:
lubiana 2025-06-28 19:07:30 +02:00
parent 9fc198e3e3
commit b57ab05558
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
3 changed files with 61 additions and 9 deletions

View file

@ -43,7 +43,7 @@ test('it returns stock history for a drink type', function (): void {
// Verify the result
expect($result)->toBeArray();
expect($result)->toHaveCount(3);
expect($result)->toHaveCount(4);
// Verify that all logs are for currentStock
foreach ($result as $log) {
@ -81,7 +81,7 @@ test('it only returns logs for the specified drink type', function (): void {
$result = $getStockHistory($drinkType1);
// Verify we only get logs for the first drink type
expect($result)->toHaveCount(1);
expect($result)->toHaveCount(2);
expect($result[0]->getEntityId())->toBe($drinkType1->getId());
expect($result[0]->getNewValue())->toBe('10');
});

View file

@ -43,7 +43,7 @@ test('it returns wanted stock history for a drink type', function (): void {
// Verify the result
expect($result)->toBeArray();
expect($result)->toHaveCount(3);
expect($result)->toHaveCount(4);
// Verify that all logs are for wantedStock
foreach ($result as $log) {
@ -81,7 +81,7 @@ test('it only returns logs for the specified drink type', function (): void {
$result = $getWantedHistory($drinkType1);
// Verify we only get logs for the first drink type
expect($result)->toHaveCount(1);
expect($result)->toHaveCount(2);
expect($result[0]->getEntityId())->toBe($drinkType1->getId());
expect($result[0]->getNewValue())->toBe('10');
});