/** * Remainder amounts should not be added to merchandise * pricing payloads. */ public function testBuildOrderItemsRemainder() { $this->itemStub->addData(['qty_ordered' => 2, 'row_total' => 14, 'price' => 7, 'discount_amount' => 4]); $handler = $this->getModelMockBuilder('ebayenterprise_order/create_orderitem')->setMethods(['loadOrderItemOptions', 'isShippingPriceGroupRequired'])->setConstructorArgs([['shipping_helper' => $this->shippingHelper]])->getMock(); $handler->expects($this->any())->method('loadOrderItemOptions')->will($this->returnValue($this->optionValueCollectionStub)); $handler->expects($this->any())->method('isShippingPriceGroupRequired')->will($this->returnValue(false)); $handler->buildOrderItem($this->payload, $this->itemStub, $this->orderStub, $this->addressStub, 1, true); $this->assertSame('thesku', $this->payload->getItemId()); $this->assertSame(null, $this->payload->getMerchandisePricing()->getRemainder()); }