/** * @param \Magento\Sales\Service\V1\Data\OrderAddress $orderAddress * @return bool */ public function addressUpdate(OrderAddress $orderAddress) { return $this->orderAddressUpdate->invoke($orderAddress); }
/** * test order address update */ public function testAddressUpdate() { $orderAddress = $this->getMock('Magento\\Sales\\Service\\V1\\Data\\OrderAddress', [], [], '', false); $this->orderAddressUpdateMock->expects($this->once())->method('invoke')->with($orderAddress)->will($this->returnValue(true)); $this->assertTrue($this->orderWrite->addressUpdate($orderAddress)); }