get ready
This commit is contained in:
parent
ca9819a436
commit
6b0a478ca5
16 changed files with 395 additions and 124 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue