Skip to content

Commit

Permalink
update assertions in OrderProductTest to use enum values instead of s…
Browse files Browse the repository at this point in the history
…trings for cup size and milk type
  • Loading branch information
Divyeshhhh committed Jun 8, 2024
1 parent c8c2f1e commit a33383f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/models/OrderProductTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public function testGetById(): void
$this->assertNotNull($retrievedOrderProduct);
$this->assertEquals($this->dummy_order->getOrderID(), $retrievedOrderProduct->getOrderID());
$this->assertEquals($this->dummy_product->getProductID(), $retrievedOrderProduct->getProductID());
$this->assertEquals("medium", $retrievedOrderProduct->getCupSize());
$this->assertEquals("oat", $retrievedOrderProduct->getMilkType());
$this->assertEquals(OrderCupSize::MEDIUM, $retrievedOrderProduct->getCupSize());
$this->assertEquals(OrderMilkType::OAT, $retrievedOrderProduct->getMilkType());
$this->assertEquals(2, $retrievedOrderProduct->getQuantity());
$this->assertEquals($this->dummy_product->getPrice(), $retrievedOrderProduct->getUnitPrice());
}
Expand Down

0 comments on commit a33383f

Please sign in to comment.