/** * Tests a successful UpdateSoldItems request of the Afterbuy XML Client */ public function testUpdateSoldItemsSuccess() { $this->setMockHandlerForSuccessTest('UpdateSoldItems/ResponseOnSuccess.xml'); $soldItems = $this->client->updateSoldItems([new UpdateSoldItemsOrder()]); $this->assertInstanceOf(UpdateSoldItemsResponse::class, $soldItems); $result = $soldItems->getResult(); $this->assertInstanceOf(UpdateSoldItemsResult::class, $result); $this->assertEmpty($result->getErrors()); }