get ready

This commit is contained in:
lubiana 2025-06-11 20:28:45 +02:00
parent ca9819a436
commit 6b0a478ca5
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
16 changed files with 395 additions and 124 deletions

View file

@ -84,7 +84,7 @@ test('CreateNewOrderItems adds order items for wanted drink types', function ():
expect($orderItem2->getQuantity())->toBe(6); // 8 wanted - 2 current = 6 to order
// Verify that drink types 3 and 4 don't have order items
$drinkType3Names = array_map(fn($item) => $item->getDrinkType()->getName(), $orderItems->toArray());
$drinkType3Names = array_map(fn($item): string => $item->getDrinkType()->getName(), $orderItems->toArray());
expect($drinkType3Names)->not->toContain('Drink Type 3');
expect($drinkType3Names)->not->toContain('Drink Type 4');
});