Skip to content

Commit

Permalink
update based on new enums
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Jul 9, 2024
1 parent 4a263d4 commit 853ce5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/helpers/TestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
use Steamy\Model\Client;
use Steamy\Model\Location;
use Steamy\Model\Order;
use Steamy\Model\OrderCupSize;
use Steamy\Model\OrderMilkType;
use Steamy\Model\OrderProduct;
use Steamy\Model\Product;
use Faker\Generator;
Expand Down Expand Up @@ -244,7 +246,7 @@ public static function createReview(
$store->addProductStock($product->getProductID(), 10);

$order = new Order($store->getStoreID(), $client->getUserID(), [
new OrderProduct($product->getProductID(), 'small', 'oat', 1)
new OrderProduct($product->getProductID(), OrderCupSize::LARGE, OrderMilkType::ALMOND, 1)
]);

$success = $order->save();
Expand Down
2 changes: 0 additions & 2 deletions tests/models/OrderProductTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ public function testValidate(): void
$errors = $invalidOrderProduct->validate();

$this->assertArrayHasKey('quantity', $errors);
$this->assertArrayHasKey('cup_size', $errors);
$this->assertArrayHasKey('milk_type', $errors);
$this->assertArrayHasKey('unit_price', $errors);
}

Expand Down

0 comments on commit 853ce5d

Please sign in to comment.