public function testCreate()
 {
     $textOption = $this->dummyData->getTextOption();
     $orderItem = $this->dummyData->getOrderItem();
     $orderItemTextOptionValue = new OrderItemTextOptionValue();
     $orderItemTextOptionValue->setTextOptionValue('Happy Birthday');
     $orderItemTextOptionValue->setTextOption($textOption);
     $orderItemTextOptionValue->setOrderItem($orderItem);
     $this->assertSame('Happy Birthday', $orderItemTextOptionValue->getTextOptionValue());
     $this->assertSame($textOption, $orderItemTextOptionValue->getTextOption());
     $this->assertSame($orderItem, $orderItemTextOptionValue->getOrderItem());
 }
Пример #2
0
 public function addOrderItemTextOptionValue(OrderItemTextOptionValue $orderItemTextOptionValue)
 {
     $orderItemTextOptionValue->setOrderItem($this);
     $this->orderItemTextOptionValues[] = $orderItemTextOptionValue;
 }